note 99488 modified in function.ftp-connect by danbrown
| From: | danbrown@php.net | Date: | Tue, 24 Aug 2010 13:08:33 +0000 |
| Subject: | note 99488 modified in function.ftp-connect by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171981@lists.php.net to get a copy of this message | ||
Although an FTP port is always a number, if you specify it as one like this:
<?php $ftp = ftp_connect('example.com',210); ?>
You'll get a non-intuitive error. This, however, works [note the quotes]:
<?php $ftp = ftp_connect('example.com','210'); ?>
--was--
Although an FTP port is always a number, if you specify it as one like this:
$ftp = ftp_connect('example.com',210);
You'll get a non-intuitive error. This, however, works:
$ftp = ftp_connect('example.com','210');
http://php.net/manual/en/function.ftp-connect.php