Click to See Complete Forum and Search --> : Uploading files problem on Win98


Anon
07-20-2000, 05:46 PM
I have 'slight' problem. I wrote script for uploading files. Problem is that script works under IIS4 and Apache (WinNT), but it doesn't work under Win98 (both Apache and PWS).
Error is on the line copy ($Picture , $DestinationFile) where $Picture is POST FORM variable, and $DestinationFile is just what it says. Script reports warning that it can't find file (e.q. 'c:\\temp\\php2'). Mystery is that this file exists during script execution (I followed disk activity with filemon form www.sysinternals.com).
Desperately need help :(

Anon
07-21-2000, 12:05 PM
This isn't a valid file path in windows: c:\\temp\\php2

If $userfile is your temp file path, then, before you invoke copy, just add the line:

$userfile = stripslashes($userfile);

Had the same problem. The manual says nothing about this little 'gotcha'.

matt.

Anon
07-22-2000, 01:43 PM
Thanks a lot.
God bless Internet

Anon
05-17-2001, 08:19 PM
hello,
i get message that a file called smifk.exe is needed for opening files of type Application when i try to open any application file.