RE: [PHP] file upload failed....:(

From: Date: Mon, 16 Apr 2001 04:24:41 +0000
Subject: RE: [PHP] file upload failed....:(
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48702@lists.php.net to get a copy of this message
try <?php if (copy($f1,"upload.txt")) { echo "<b>Upload successfully"; $fname=substring (strrchr($f1_name,"\\"),1); } unlink ($f1); ?> also the substring() function does not exist until unless you have written it yourself for the code. The standard function is substr(). hope that helps regards Ankur Verma New Delhi India -----Original Message----- From: JoshuaHu [mailto:joshuahu@netimage.com.tw] Sent: Monday, April 16, 2001 9:28 AM To: php-general@lists.php.net Subject: [PHP] file upload failed....:( 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.... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#48702) next »