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
Upload, problem with dir
Moderator: General Moderators
Re: Upload, problem with dir
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
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
In tmp_name I expect to find "d:\php\tmp", regardless the permission to write in it...
Bye,
Alberto
Re: Upload, problem with dir
There are 10 types of people in this world, those who understand binary and those who don't
Re: Upload, problem with dir
I'd like do to it, but it's my choice!VladSun wrote:Use Apache
Is this
http://www.justskins.com/forums/39407-n ... 34489.html
your problem?
anyway... it's not that problem, I re-define also the session dir...
Bye,
Alberto
Re: Upload, problem with dir
Make a quick PHP script to try to write a file to that location.
Something as simple as
should be enough.
Make sure you have display_errors on.
Something as simple as
Code: Select all
touch("D:/php/tmp/temp.temp");Make sure you have display_errors on.