Re: [PHP] upload_tmp_dir Not Working

2004-07-30 Thread Justin Patrin
On Fri, 30 Jul 2004 18:05:54 -0400, Monty <[EMAIL PROTECTED]> wrote:
> 
> > On Fri, 30 Jul 2004 17:08:46 -0400, Monty <[EMAIL PROTECTED]> 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--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] upload_tmp_dir Not Working

2004-07-30 Thread Monty

> On Fri, 30 Jul 2004 17:08:46 -0400, Monty <[EMAIL PROTECTED]> 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??

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] upload_tmp_dir Not Working

2004-07-30 Thread Justin Patrin
On Fri, 30 Jul 2004 17:08:46 -0400, Monty <[EMAIL PROTECTED]> 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.

-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] upload_tmp_dir Not Working

2004-07-30 Thread Monty
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??

Thanks!  - Monty

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php