note 28364 deleted from function.ftp-pasv by didou

From: Date: Sun, 16 Jan 2005 05:43:52 +0000
Subject: note 28364 deleted from function.ftp-pasv by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-83384@lists.php.net to get a copy of this message
Note Submitter: dwales at easyetrader dot com ---- 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.

« previous php.notes (#83384) next »