I'm working on site that is PHP/MySQL and running on a Windows/IIS
system. Why? The client insists. Crazy, I know.
Anyway, I am trying to change the file uploads directory setting but
am having no luck overwriting the system setting of: "C:\Windows
\TEMP". That is the diretory that the server returns to me every time
I execute the function "sys_get_temp_dir();" from the scripts.
How can I override this?
I have tried the following:
1) setting the environtmental variable $_ENV['TMPDIR']
$_ENV['TMPDIR'] = 'd:\\inetpub\\webSites\\
mysite.com\
\_temp_directory';
where the "_temp_directory" is an empty directory that I created in
the site's root.
2) trying to use ini_set in my script as follows:
ini_set('upload_tmp_dir','d:\\inetpub\\webSites\\
mysite.com\
\_temp_directory');
3) by placing the following line directly in the php.ini file in the
file uploads section:
upload_tmp_dir = "d:\inetpub\webSites\
mysite.com\_temp_directory"
None of these have been able to get the sys_get_temp_dir(); function
to return anything but "C:\Windows\TEMP".
Does anyone know how to do this?
Thanks,
Joe