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



[PHP] upload_tmp_dir has no value... could that be the problem?

2003-11-06 Thread Jason
All,

Trying to run an upload script.



Looks like the problems is in the "if (move_uploaded_file.." line also a
look at the configuration of PHP4.1.2 shows "no value" for upload_tmp_dir

Any hints?

Jason

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



RE: [PHP] UPLOAD_TMP_DIR

2001-10-02 Thread Joe Kaiping


Hi,

You might want to check out http://phpclasses.upperdesign.com.  There are a
number of useful classes there, including "Metabase" and "HTML Mime Mail".
I recently got a notice that the following "Upload" class is also now
available.  I haven't tried it yet, though.  There are other upload classes
available there as well.  Maybe you could try a couple and write back to
this mailing list the ones you liked best?

-Joe

---

Name: Upload

Author: chris <[EMAIL PROTECTED]>

Description:
The Upload class is a wrapper for uploading files using html forms. The
form should have the 'enctype="multipart/form-data"' attribute for this
the files to be uploaded properly. The Class should be created by passing
$HTTP_POST_FILES as the only argument for the constructor (e.g. $upload =
new Upload(&$HTTP_POST_FILES)), and also by reference (the & indicates
this). See http://www.sloppycode.net/sloppycode/PHP/cm13.html for the
manual.

URL: http://phpclasses.upperdesign.com/browse.html/package/348



> -Original Message-
> From: Henning Støverud [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 02, 2001 12:58 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] UPLOAD_TMP_DIR
>
>
> Hi
>
> I've made an upload system at my ISP's webserver, but it
> seems like they
> have done something with the UPLOAD_TMP_DIR cause I get this
> error message:
>
> PHP Warning:  File upload error - unable to create a temporary file in
> Unknown on line 0
>
> Can I set the UPLOAD_TMP_DIR myself inside a PHP script, or
> is it only the
> sysadmin who can do that?
> If I can't do anything about this problem, is it another way to upload
> files?
>
> Regards,
> --
> Henning Støverud ([EMAIL PROTECTED])
> http://www.stoverud.com
> Tlf: +47 91 68 05 68
> Fax: +47 85 02 16 31
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] UPLOAD_TMP_DIR

2001-10-02 Thread Henning Støverud

Hi

I've made an upload system at my ISP's webserver, but it seems like they
have done something with the UPLOAD_TMP_DIR cause I get this error message:

PHP Warning:  File upload error - unable to create a temporary file in
Unknown on line 0

Can I set the UPLOAD_TMP_DIR myself inside a PHP script, or is it only the
sysadmin who can do that?
If I can't do anything about this problem, is it another way to upload
files?

Regards,
--
Henning Støverud ([EMAIL PROTECTED])
http://www.stoverud.com
Tlf: +47 91 68 05 68
Fax: +47 85 02 16 31


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]