Re: [PHP] Indexing Remote Directory

2001-01-30 Thread Richard Lynch
> I have tried $startdir = http://siteiwant.com/; with no joy > :( If the web-site in question had DirectoryBrowse on, or whatever that Apache flag is so you can see directories when there's no index.htm, and if the site in question had no index.htm, you could maybe use fopen() to do that... Ano

[PHP] Indexing Remote Directory

2001-01-26 Thread Kif
hi, if i want to index the filenames in a local directory its quite easy using something like the following: $startdir = "." ; $the_directory = opendir($startdir) ; while($filename = readdir($the_directory)) { print("$filename = "); print(filesize($filename)); print(""); } close