file upload failed....:(
| From: | JoshuaHu | Date: | Mon, 16 Apr 2001 03:57:30 +0000 |
| Subject: | file upload failed....:( | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-48700@lists.php.net to get a copy of this message | ||
I use PHP 4.04p11 on Apache.
But my upload.php can't work...
f1 is the name of file-upload-variable....
<?php
if (copy($f1,"upload.txt"))
{
echo "<b>Upload successfully";
$fname=substring (strrchr($f1_name,"\"),1);
}
unlink ($f1);
?>
The browser returns
Parse error: parse error in c:/inetpub/php_root/upload.php on line 8
Can anyone tell me where I make mistake...
thanks a lot....