note 35191 added to ref.ftp

From: Date: Fri, 22 Aug 2003 15:12:59 +0000
Subject: note 35191 added to ref.ftp
Groups: php.notes 
Request: Send a blank email to php-notes+get-54881@lists.php.net to get a copy of this message
I just had problems with "ftpbuf 0" errors, and searched for an answer all over the net. It turned out that the file I was reading the IP address from contained a newline (\n) after the IP address, so this messed things up. I only noticed it after echoing the ip address in quotes as a debug - I could see a space after the last digit, this space turned out to be a newline. Hope this helps others before they spend too long trying to figure out ftpbuf errors and thinking the cause is hostnames, etc. ---- Manual Page -- http://www.php.net/manual/en/ref.ftp.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35191 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35191&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35191&report=yes

« previous php.notes (#54881) next »