Help with file_uploads directive.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
skelly
Forum Newbie
Posts: 3
Joined: Fri Mar 11, 2005 11:49 am

Help with file_uploads directive.

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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..
skelly
Forum Newbie
Posts: 3
Joined: Fri Mar 11, 2005 11:49 am

Post 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!?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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..
skelly
Forum Newbie
Posts: 3
Joined: Fri Mar 11, 2005 11:49 am

Post 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
Post Reply