Hello... I'm a newbie and having a bit of a problem uploading files with php. So please help... The problem: ========== I'm having a problem uploading a file from a client (through a browser) to my server (http/post). If a choose a file on the client - for example "C:\Program Files\Netscape\Communicator\Program\nareadme.htm" I get the following message when I try to send the file: nareadme.htm /* my debug none /* my debug Warning: Unable to open 'none' for reading: No such file or directory in D:\DOKUMENTER\CornerTechnology\tester\uploadHandle.php It seems that PHP is trying to fetch the file from the same directory as where my "form" and "php-scrip"t are placed and NOT from the chosen directory on client's directory! What am I doing wrong? Per ------ Code and config below --- The Code ======= The form code: ------------ <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="generator" content="Adobe GoLive 5"> <title>Pick a file</title> </head> <body bgcolor="#ffffff"> <FORM ENCTYPE="multipart/form-data" ACTION="uploadHandle.php" METHOD=POST> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000"> Send this file: <INPUT NAME="userfile" TYPE="file"> <INPUT TYPE="submit" VALUE="Send File"> </FORM> </body> </html> The "uploadHandle.php" file ---------------------------------------- <? echo($userfile_name); echo("<BR>"); echo($userfile); if (copy($userfile, "upload.txt")) { echo("<B>The file is now uploaded....</B>"); } else { echo("Error: Damm..!"); } unlink($userfile); ?> System configuration /SERVER ======================= Win NT Service pack 5 Microsoft Information Server PHP v. 4.0.3 p1 PHP.ini: file_uploads = on upload_tmp_dir = C:\UPLOADS ---- End --- ---------------------------------------------------------- Web: www.CornerTechnology.com E-Mail: [EMAIL PROTECTED] ---------------------------------------------------------- Per Nielsen Corner Technology ApS Sanatorievej 75 Tel.: (+45) 75 11 74 82 6710 Esbjerg V. Fax: (+45) 75 11 76 55 Denmark, Europe ---------------------------------------------------------- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]