View Single Post

  #7 (permalink)  
Old 03-08-2008
mike
 
Posts: n/a
Default Re: PHP-file upload problem and upload_tmp_dir

Rik Wasmus wrote:

>
>> Q1: How do I set the temporary upload file 'upload_tmp_dir' in
>> windows XP.

>
>
> You shouldn't need it, if nothing is set Windows default tmp dir is
> used, which usually saves you a lot of headaches. If you change the
> path in php.ini, and phpinfo() reports it not being set:
> 1) Check wether you have restarted your webserver (I assume Apache?
> httpd -k restart)
> 2) Check phpinfo() for the actual php.ini file used, it might not use
> the one you think.
>


> UPLOAD_ERR_NO_TMP_DIR indeed...
> <http://nl2.php.net/manual/en/features.file-upload.errors.php>
>
> Can you write in your tmp directory with PHP?


I am not sure how to do this I am fairly green to php.
do you have a short test script that I can try.

What is the default temp directory?

C:/windows/temp

Mike

Reply With Quote