|
Posted by "Andrew Brampton" on 01/13/06 21:05
When you do FTP its actually two TCP connections, a outgoing to port 21, and
then a incoming. The most common problem with FTP is that the incoming
connection gets blocked by a firewall or NAT. So most people use passive FTP
where instead it makes two outgoing TCP connections.
I think the directory listings are sent over this 2nd connection, so I would
suggest your problem is that the incoming data connection is being blocked
by a firewall on your server. Try to either use passive FTP or to change
your firewall rules.
Andrew
----- Original Message -----
From: "Giulio" <giulio@cantoberon.it>
To: <php-general@lists.php.net>
Sent: Friday, January 13, 2006 3:43 PM
Subject: [PHP] ftp_nlist problem
>I have a script using some ftp functions that runs just fine on various
>server I have tested.
>
> Now that I've installed it om a customer's server, it ( obviously )
> stopped working.
>
> claning the script to isolate the problem, I've discovered that the
> problem is on the ftp_nlist command that freezes the script execution for
> a lot ( and the machine too, like doing an heavy work ) and then returns
> an error ( false ). ftp_rawlist has the same problems.
>
> all the previous operations ( connect, login and chdir ) work without
> problems.
>
> any idea on where could I check for a solution?
>
> thank you,
>
> Giulio
>
>
> Cantoberon Multimedia srl
> http://www.cantoberon.it
> Tel. 06 39737052
>
[Back to original message]
|