Changing your PHP configuration

You can change the PHP configuration on your site by creating a text file called 'php.ini', which goes in the root folder of your site. You use this to set the options when PHP is run on your site: there are a huge number of these.

Some useful ones are:-

This stops error or warning messages being displayed - you may want to do this on a production site because these messages give attackers information about your server
This stops your files from being accessed remotely through a PHP include - again this will help your site security
Increases the amount of server memory available to your script (the default is 8 MB)
Increases the maximum upload file size (the default is 2 MB)

You can find further information on this in the official PHP documentation, available from