Re: Remote Directory listing

From: Date: Sun, 28 Jan 2001 00:52:51 +0000
Subject: Re: Remote Directory listing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37062@lists.php.net to get a copy of this message
On Sat, Jan 27, 2001 at 04:03:34PM -0000, Kif wrote : > I have tried $startdir = http://siteiwant.com/; with no joy > :( There is no real, standard think like an index. What you see with webservers is just a component of the webserver which makes it easier for you to access sub-dirs and sub-files, if it is configured to do so. And thats the point, if the remote site is not configured to list the dir in the particular path you try to access, no way. And still even if it does, you can't use opendir; you have to parse the (most times it will be html) output you get. Its easier if the directory you need a listing of is also mapped 1:1 to ftp on the same site; then just use phps ftp functions. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: mfischer@josefine.ben.tuwien.ac.at PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0

« previous php.general (#37062) next »