Page 1 of 1

Help with file_uploads directive.

Posted: Fri Mar 11, 2005 11:52 am
by skelly
I have php.ini set to file_uploads On, but when I do phpinfo() it says "Local Value" is set to "Off". I restart apache and it stays. Does anyone know what could cause this behavior?

Posted: Fri Mar 11, 2005 12:03 pm
by feyd
you likely are changing the wrong php.ini ... look at the first section of phpinfo() to see where your install is pulling the ini from..

Posted: Fri Mar 11, 2005 12:14 pm
by skelly
It's the right php.ini The line in the file says something like:

directive local value master value
...
file_uploads Off On

so the Master Value is reflecting the .ini file correctly, but for some reason it is being overridden in my environment. I really can't think of why!?

Posted: Fri Mar 11, 2005 12:57 pm
by feyd
do you have an .htaccess in the folder you are checking under? It's possible it may be a conf setting as well..

Posted: Sat Mar 12, 2005 12:58 pm
by skelly
I figured it out, in case any cares. In http.conf there was a line added by php (!) that said "php_admin_value file_uploads off", which was overriding my php.ini