Page 1 of 1

custom php.ini - settings not taken into consideration

Posted: Wed Oct 28, 2009 11:40 pm
by mih
Hello,

I would like to have

Code: Select all

upload_max_filesize = 5M
instead of the standard one and the web host told me:
You can simply create a php.ini file in your account with the settings changes you would like to make. For example, place the following text in a file called php.ini:

upload_max_filesize = 20M;

This will increase the max upload size to 20MB. Please note that php.ini files affect only the directory they are located in.
I read the documentation as well and what I was told seemed right so I created a php.ini in my directory c:\wamp\www\books, but too no avail, the settings are not taken into consideration.

The file just contains:

Code: Select all

max_execution_time = 45
upload_max_filesize = 5M
What I am doing wrong ?

Thank you

Re: custom php.ini - settings not taken into consideration

Posted: Sat Oct 31, 2009 2:52 pm
by mih
Hello,

Yes, it works for the hosted website but not on my workstation.
It is quite annoying not to be able to test these changes.

Update:
I actually had to change php.ini in c:\wamp\apache to make it work.

Thanks