View Full Version : Overiding hosting's PHP.ini

02-02-2007, 11:07 PM
Uploaded a php.ini to my hosting server to override some of their setting for post_max_size. But I didn't want to upload my php.ini b/c I'm on a windows machine and the host is a linux machine. I didn't know how this would affect the PHP engine. So I uploaded a php.ini that only changed the post_max_size. But I noticed that since I didn't place upload_max_filesize it defaulted to 2M. I was thinking it would use whatever the HOST was using. So I added the following settings. What other settings should I explicitly set? Or should i just upload my php.ini file?


post_max_size = 25M
upload_max_filesize =25M
max_execution_time = 50000
memory_limit = 40M

02-04-2007, 03:23 AM
If a directive is miising from the php.ini file then PHP will use built-in defaults for that directive (as can be seen in the php-ini-dist file).

I would copy your hosts php.ini file and just change what you need to change.

02-04-2007, 03:37 PM
I will do that. Thanks

02-04-2007, 03:59 PM
you dont need to override the php.ini file... you can set the size limit by .httacess file or in php as well..