Forum Moderators: coopster

Message Too Old, No Replies

php.ini

php.ini help

         

chatadmin

5:50 am on Jun 10, 2005 (gmt 0)

10+ Year Member



trying to increase the upload file size from 2m to 4m. createda php.ini file where i changed the size. stuck it in the public html folder. however when i do a phpinfo() the size is still 2m.

What am i doing wrong?

dreamcatcher

8:23 am on Jun 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you on a shared hosting server? If you are, I doubt you will be able to increase the upload size. It might be possible using ini_set in your script, but you might want to check with your host first.

coopster

1:31 pm on Jun 10, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, chatadmin.

Actually you can override that directive but as dc said only in a per-directory context -- which means either the httpd.conf, php.ini, or an .htaccess file.

This page comes in quite handy for determining your options:

[php.net...]

chatadmin

2:02 am on Jun 12, 2005 (gmt 0)

10+ Year Member



I tried using a php.ini file and change the size there!
I was told by my host to use a php.ini file. so i got one from online modify it to suit my needs placed it in my root folder but it had no affect. I would type phpinfo() and still get that 2m instead of the 4m that i changed it to!

i do not know where to find the default php.ini file so i can change it!

dreamcatcher

8:56 am on Jun 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When you access phpinfo() in your browser, the path to the PHP.ini file is specified a few lines down. Some shared hosting servers do not allow access to this file though.