NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP Windows

Kerem Tuzemen keremtuzemen at hotmail.com
Tue Sep 3 17:45:25 EDT 2002


Jeremy,
Check this one out, it's working on win2k server:

function uploadfile($filehandle,$filename) {
global $fileuploaddir;
 if (is_uploaded_file($filehandle)) {
   $result=move_uploaded_file($filehandle, "$fileuploaddir".$filename);
 }
 return $result;
}

You are probably trying to use filename instead of file handle, I hope above
code helps.

Kerem Tuzemen

----- Original Message -----
From: "Jeremy Hise" <jhise at linuxforbusiness.org>
To: "NYPHP Talk" <talk at nyphp.org>
Sent: Tuesday, September 03, 2002 5:16 PM
Subject: [nycphp-talk] PHP Windows


> Hi All:
>
> I am uploading a file in PHP on Windows2k (via HTTP Uploads), and when I
go to copy the file, I get the error:
>
> Warning: Unable to open C:WINNTTEMPphp1D.tmp
>
> Doesn't it seem as though the "\\"s are being taken out?
>
> Does anyone have any pointers?
>
> Thanks!
>
> jeremy
>



More information about the talk mailing list