Page 1 of 1

Upload, problem with dir

Posted: Thu Nov 13, 2008 2:45 am
by alb.amati
I use php 5 on IIS 6.
I change upload_tmp_dir and restart IIS.

From phpinfo():
upload_tmp_dir 'D:\php\tmp'

But, if I print $_FILE:
["tmp_name"]=> string(26)

"C:\WINDOWS\Temp\php1CA.tmp"

I want to change the upload dir of tmp file...

Any suggestion?

Thanks,
Alberto

Re: Upload, problem with dir

Posted: Thu Nov 13, 2008 4:09 am
by requinix
You sure that d:\php\tmp already exists? Does it have the permissions to allow the IIS user access to the directory?

Re: Upload, problem with dir

Posted: Thu Nov 13, 2008 4:56 am
by alb.amati
I check, the ISS user has all the permissions on D:\php\tmp
In tmp_name I expect to find "d:\php\tmp", regardless the permission to write in it...
Bye,
Alberto

Re: Upload, problem with dir

Posted: Thu Nov 13, 2008 6:18 am
by VladSun

Re: Upload, problem with dir

Posted: Thu Nov 13, 2008 7:06 am
by alb.amati
VladSun wrote:Use Apache ;)
Is this
http://www.justskins.com/forums/39407-n ... 34489.html
your problem?
I'd like do to it, but it's my choice!
anyway... it's not that problem, I re-define also the session dir...

Bye,
Alberto

Re: Upload, problem with dir

Posted: Thu Nov 13, 2008 9:43 am
by alb.amati
ouch!

http://bugs.php.net/bug.php?id=44420

It's still open
Any workaround?
Any idea?

Re: Upload, problem with dir

Posted: Thu Nov 13, 2008 2:59 pm
by requinix
Make a quick PHP script to try to write a file to that location.
Something as simple as

Code: Select all

touch("D:/php/tmp/temp.temp");
should be enough.
Make sure you have display_errors on.