Silverstripe _config.php Cheatsheet
Last Updated on Thursday, 18 April 2013 09:42 Written by Teet Bergmann Friday, 19 April 2013 12:00
Here are some of most used lines in _config.php:
Learn MoreHow to Change the PHP Version on Linux/cPanel Hosting
Last Updated on Sunday, 3 March 2013 08:01 Written by Khaleel Demeri Sunday, 3 March 2013 12:00
By default, our Linux accounts makes use of PHP 5.2 as not all scripts are compatible with higher PHP versions, However, If you wish to use a php version other than the default one then this blog was made for you.
To change php version for your account, you have two options:
1) You can change it using your .htaccess file.
For this, please see http://blog.arvixe.com/how-to-use-php-5-3-on-linux-hosting/
Note: This can be done for just one domain or for the whole account.
Learn MoreFunction to Generate a Copyright Since with PHP
Last Updated on Saturday, 23 February 2013 01:37 Written by Richi González Monday, 25 February 2013 12:00
Hello,
When working with a website, I always try to make things the most automated I can so that I don’t need to be editing them often, that’s why here I present you a function I created that is used to return the years for the copyright notice, for example. It will print the year since the website started and the current year. Keep reading to see what I’m talking about!
1. Copy paste the following function to your functions file or, if you don’t have one, to the top of your PHP file.
Learn MoreHow to Change PHP Version via .htaccess File
Last Updated on Thursday, 14 February 2013 09:29 Written by Naveed Ashraf Thursday, 14 February 2013 12:00
On a server, there is possibility to have more than one compiled php version. If you wish to use a php version other than the default one, you can use the .httaccess file for this purpose.
If the default php version on a server is set to php 5, then by default, all domains will use php5. If a certain application installed on a domain runs only under php4, thenit is necessary that the domain uses php4
Open .htaccess by any suitable editor. Put the following code into it:
Server without suphp enabled
AddType application/x-httpd-php4 .php .htm .html
Server with suphp enabled
AddHandler application/x-httpd-php4 .php .htm .html
In the same way, you can enable other php versions if they are installed/compiled over the server.
Looking for quality web hosting? Look no further than Arvixe Web Hosting!
Learn MoreHow to Find phpinfo in phpFox’s AdminCP
Last Updated on Friday, 1 February 2013 06:32 Written by Stephanie Brown Saturday, 2 February 2013 12:00
This article will focus on how to find the phpinfo information from within your phpFox AdminCP.
There may be a time that you need to see if a php module is installed on your server. There are a few different ways of doing this, however if you are already in your phpFox admincp, there is a quick and easy way to find this information.
Select Tools > System Overview.
Learn More
Recent Comments