Cat set `upload_tmp_dir` in Windows

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Using Windows, PHP5.2

ini_set("upload_tmp_dir", "c:/temp");
echo ini_get('upload_tmp_dir'); // print out the default one

no effect...

Re: Cat set `upload_tmp_dir` in Windows

howa wrote:

Quoted text here. Click to load it


It is all in the Fine Manual.
Go to
Search for function ini_set()
Follow the first link to the 'appendix'.

You'll see a list there.
Under the list you can find the meaning of things like:
php_ini_user, php_ini_system, etc.

In your case: php_ini_system.
This means you have to change it in php.ini or in httpd.conf.

Why is that?
For some reason PHP wants to know this value BEFORE running your script.
(Guessing) I expect PHP must know WHERE to place the uploaded file before  
executing your script.

Erwin Moller

Site Timeline