note 37051 deleted from function.ftp-get by didou

From: Date: Sun, 16 Jan 2005 05:36:41 +0000
Subject: note 37051 deleted from function.ftp-get by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-83372@lists.php.net to get a copy of this message
Note Submitter: jcastro at elnuevodia dot com ---- I found and interesting side effect. If I do and ftp_get on a file that does not exist on the server. I will get a zero file created in my machine with the name that I put in the local file variable. To fix this if (!@ftp_get($conn_id, $local_file, $server_file, FTP_BINARY)) { unlink($local_file); } WEIRD!!! Sounds like a bug I am running php 4.3.3 on windows xp prof

« previous php.notes (#83372) next »