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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php