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
There are 5 comments on this page. [Display comments]