I've seen many posts asking about what is going on with file uploads specific to windows 98.
This is the usual error that everyone seems to get:
Warning: Unable to open 'C:\WINDOWS\TEMP\php2' for reading: No such file or directory in C:\Inetpub\wwwroot\formTemp\handleUpload.php4on line 15
I've set php.ini to send uploaded files to:
c:\upload\temp
And, running <? phpinfo(); ?> confirms that php is reading my upload setting.
However, I've also noticed that these settings also avaliable by running <? phpinfo(); ?> -
HTTP_ENV_VARS["TEMP"] C:\WINDOWS\TEMP
HTTP_ENV_VARS["TMP"] C:\WINDOWS\TEMP
Anyone else who has had this problem has found that php uploads, or seems to upload the temp file to 'C:\WINDOWS\TEMP\php2' no matter what the php.ini file says.
So, I'm wondering if there's a way to temporarily set HTTP_ENV_VARS["TEMP"] or HTTP_ENV_VARS["TMP"] so that the file is uploaded to the correct directory. Or, that could be the wrong idea altogether, but I'm grasping at straws at this point.
Anyway, if anyone has solved this problem, please let me know and I will forever be grateful.
Many thanks,
Matt.