note 28364 added to function.ftp-pasv
| From: | dwales at easyetrader dot com | Date: | Fri, 10 Jan 2003 16:02:37 +0000 |
| Subject: | note 28364 added to function.ftp-pasv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41966@lists.php.net to get a copy of this message | ||
When using the ftp_puts or ftp_fputs, if you are receiving the error: ftp_put(): Illegal PORT
command.
Here is the fix, use
//SET FTP TO PASSIVE MODE
ftp_pasv($ftp_resource,TRUE);
I couldn't find any help on this so had to work it out for myself, so here it is for the rest
of you guys :)
I guess PHP sets passive mode FALSE by default, you will only need to issue this command if the FTP
server you are connecting requires you to do so, try it and see.
--
http://www.php.net/manual/en/function.ftp-pasv.php
http://master.php.net/manage/user-notes.php?action=edit+28364
http://master.php.net/manage/user-notes.php?action=delete+28364
http://master.php.net/manage/user-notes.php?action=reject+28364