note 40080 deleted from function.ftp-connect by didou

From: Date: Sun, 16 Jan 2005 05:19:42 +0000
Subject: note 40080 deleted from function.ftp-connect by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-83377@lists.php.net to get a copy of this message
Note Submitter: andy at yatescentral dot com ---- Be sure to check for \n or \r in strings passed to ftp_connect. I was reading environment variables from a file, one of which was the ftp site name without stripping \n or \r and got the following error: ftp_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known

« previous php.notes (#83377) next »