Remote Directory listing

From: Date: Sat, 27 Jan 2001 16:03:34 +0000
Subject: Remote Directory listing
Groups: php.general 
Request: Send a blank email to php-general+get-36985@lists.php.net to get a copy of this message
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("<br>$filename =<strong> "); print(filesize($filename)); print("</strong>"); } closedir($the_directory); But how can I use something like this to index a REMOTE directory? I have tried $startdir = http://siteiwant.com/; with no joy :( Can someone help please Thanks

« previous php.general (#36985) next »