You are Here:
FAQ
Scripting and Programming Languages
PHP
Article #14
|
How can I change PHP directives in php.ini or .htaccess?Please see the following page from PHP.net that contains a list of directives that can be changed in php.ini/.htaccess: http://de3.php.net/manual/en/ini.php#ini.list Example for php.ini/.htaccess file: Linux Shared Hosting and Managed Servers running PHP as a CGI: Filename: php.ini upload_max_filesize = 10M post_max_size = 10M Managed Server running PHP as an Apache Module: Filename: .htaccess php_value post_max_size "10M" php_value upload_max_filesize "10M" NOTE: You will not use a full php.ini file to make changes to PHP directives. The file should only contain the directives to be changed, as in the example above. You will need a php.ini file in every directory for which you want the changes to apply. Not all directives are changeable/installed. If you have made a change in php.ini and it is not working correctly, please contact Technical Support for more information. |
© 2008 1&1 Internet Inc - About 1&1 Internet