note 37051 added to function.ftp-get

From: Date: Fri, 31 Oct 2003 22:03:19 +0000
Subject: note 37051 added to function.ftp-get
Groups: php.notes 
Request: Send a blank email to php-notes+get-59604@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.ftp-get.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37051 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37051&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37051&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59604) next »