Re: upload_tmp_dir Not Working
| From: | Justin Patrin | Date: | Sat, 31 Jul 2004 00:07:08 +0000 |
| Subject: | Re: upload_tmp_dir Not Working | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192372@lists.php.net to get a copy of this message | ||
On Fri, 30 Jul 2004 18:05:54 -0400, Monty <monty3@hotmail.com> wrote:
>
> > On Fri, 30 Jul 2004 17:08:46 -0400, Monty <monty3@hotmail.com> wrote:
> >> In my .htaccess file I have...
> >>
> >> php_value upload_tmp_dir /home/site/temp
> >>
> >> But when I upload a file using a form, here's what the $_FILE array prints
> >> out:
> >>
> >> [tmp_name] => /temp/phpvRRDss
> >>
> >> /temp is a valid directory, but, it's not the directory I specified in the
> >> ..htaccess file for this site.
> >>
> >> So, obviously PHP is not using my temp directory, or it's not reporting the
> >> proper temp directory in the $_FILES array.
> >>
> >> I also tried adding this to my httpd.conf file within the site's VirtualHost
> >> directives, but, that didn't work either (yes, I restarted Apache first).
> >>
> >> Anyone have any insight on this??
> >>
> >
> > Perhaps try putting it in your php.ini where it belongs? Perhaps this
> > is a non-overrideable value.
> >
>
> The PHP manual says that the "upload_tmp_dir" setting is PHP_INI_SYSTEM, so,
> it can be set in php.ini or httpd.conf.
>
> That explains why it won't work in .htaccess, but, not why it didn't work in
> httpd.conf. Where in the httpd.conf file does this need to go then? The
> online docs don't say. I don't want this to be global, I want a different
> upload_tmp_dir for each site. But, if it can only be set in PHP.INI, then I
> guess this isn't possible??
>
I believe that if it's PHP_INI_SYSTEM, it has to be for the whole
system. If you're setting it per-domain or directory or something in
httpd.conf, that's probably why it's not working.
I don't see why this would matter as you can immediately move it
wherever you want it.
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--