php.ini
php.ini can be used to override most php settings. (examples: maximum upload size, register globals, etc).php.ini can be created with any text editor (like notepad, or the file manager).
You have to include every setting, not just the settings you want to change from the PHP default, and you must include your new php.ini file in every directory you want the new settings to apply to (where you have PHP files executing from).
If you want to see what the current settings are go to the php Info link from netadmin/cpanel.
the format is:
register_globals = off
session.use_trans_sid = 0
upload_max_filesize = 10M
session.use_trans_sid = 0
upload_max_filesize = 10M
(insert php settings file here}
Upload that to the top directory you want to have those settings. To verify, create a small php file in that same directory foo.php:
Note, the new php.ini must be put in each individual directory you want the overridden settings to apply to. php.ini changes are not recursive (meaning they don't apply to each subdirectory below the directory in which the file is placed.)
Search:
Back:
MysticServer
"You do not have to include every setting, just the settings you want to change."
PHP will only process the last php.ini file it sees. So you will lose all the site5 modifications if you only put in what you want to change.
Well, I guess it is true that you don't HAVE to include everything, but you will not get the results you want if you don't.
-Jason
-Jason
http://tips-scripts.com/?tip=php_ini#tip
And an easy way to put it in all your directories (and update them all later as well):
http://tips-scripts.com/?tip=php_ini_copy#tip