Upload not working...

From: Date: Wed, 08 Sep 2004 04:23:06 +0000
Subject: Upload not working...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-196098@lists.php.net to get a copy of this message
I tried this form to upload a file. <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <body> <form action="./upload.php" method="post"> <input type="file" name="userfile"> <input type="submit" value="upload"> </form> </body> </html> with the following code: <?php copy($userfile, "/var/www/html/upload/data/$userfile_name"); unlink($userfile); ?> and am getting the message "Warning: Unable to open '\"C:\\Documents and Settings\\Administrator\\Desktop\\photos\\IMAGE0099.JPG\"' for reading: No such file or directory in /var/www/html/ICIweb/php/upload.php on line 2" This very code works in my home computer. I tried this with my local server at my office and my web server, both give the same message what is the wrong with it. DT

« previous php.general (#196098) next »