Please explain exactly what the problem is. If you had a firewall in the way
and a normal FTP client couldn't login then whatever you do in PHP would not
be able to get you in either.

(from php.net)


$conn_id = ftp_connect($ftp_server);

$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);

if ((!$conn_id) || (!$login_result)) {
     echo "FTP connection has failed!";
     echo "Attempted to connect to $ftp_server for user $ftp_user_name";
     exit;
   } else {
     echo "Connected to $ftp_server, for user $ftp_user_name";
   }

...

This is simple, but I have firewall.... How to enter firewall ip....

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to