Can I add a PHP initialization file to my hosting account?
Print this Article
Comment on this Article
Last Updated:
October 12, 2009 10:48 AM
Here is the Lowdown: PHP initialization files can manage form, server, and environmental variables as well as server-side cookies, temporary directories, error display, and error logging.
Your ability to add a php.ini file to your hosting account depends on the type of hosting account you are running:
- Windows IIS6 accounts do not support PHP.
- Windows IIS7 accounts always run PHP 5.
- Linux accounts support both PHP 4 and PHP 5.
If you are running Linux, and need to determine which version of PHP you are running, see Find the Current PHP Version and Settings in Linux Shared or Dedicated Server Account.
IMPORTANT: If you are running PHP 4, name your initialization file php.ini. If you are running PHP 5, name your initialization file php5.ini. Always upload the initialization file to the root directory of your site.