Re: [PHP] ftp_nlist problem

2006-01-13 Thread Andrew Brampton
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 dire

Re: [PHP] ftp_nlist()

2004-09-13 Thread Curt Zirzow
* Thus wrote Karol Krizka: > Hello, > I have the following class for ftp: > > -- class FTP { > > function get_files($dir="/") { > ftp_chdir($this->connection,$dir); > $array=ftp_nlist($this->connection,ftp_pwd($this->connection)); > var_dump($array); > } > } > > Whe

Re: [PHP] ftp_nlist()

2004-09-12 Thread zareef ahmed
Hi, --- Jason Wong <[EMAIL PROTECTED]> wrote: > Not sure why you would want to chdir first. Why not > just: > ftp_chdir is usefull on windows specially if directory name has a space in it. zareef ahmed = Zareef Ahmed :: A PHP Developer in Delhi ( India ). Homepage :: http://www.zasaifi.c

Re: [PHP] ftp_nlist()

2004-09-12 Thread Jason Wong
On Sunday 12 September 2004 10:08, Karol Krizka wrote: > function get_files($dir="/") { > ftp_chdir($this->connection,$dir); > $array=ftp_nlist($this->connection,ftp_pwd($this->connection)); > var_dump($array); > } > When I connect to ftp server for my website at > ftp:/