[PHP] Re: scandir and ftp wrapper

2007-04-12 Thread Al
It appears you are trying to scan/list a remote site's directory; why? Most sites will not allow you to do this. If it's your own site; just use the full path or symbolic one. j wrote: Hi I have a question about scandir I have been trying to track down problems after upgrading from 5.1.6 to

Re: [PHP] Re: scandir and ftp wrapper

2007-04-12 Thread John Ewing
It appears you are trying to scan/list a remote site's directory; why? Most sites will not allow you to do this. I'm connecting to a remote site via the ftp wrapper. So I can't just use the file path. I have a script which runs on one webserver to get information off another server via ftp.

Re: [PHP] Re: scandir and ftp wrapper

2007-04-12 Thread Al
How about the simple opendir() then readdir()? Or, put a php file in the remote site you can query for the list. Or, if the remote has a cgi-bin put a script in it you can query remotely. Look at cURL. John Ewing wrote: It appears you are trying to scan/list a remote site's directory; why?