Connecting Tech Pros Worldwide Forums | Help | Site Map

Is it possible to list directory content with CURL

Steve
Guest
 
Posts: n/a
#1: Aug 2 '08
My site is hosted on a Godaddy reseller site. Godaddy only allows the
use of Curl to access remote sites.

What is the method for listing a directory after connecting to the
site with Curl?

I've already tested my code for connecting but how do I list whats in
the directory.

The purpose is to compare the list to the filenames in my database.
Sjoerd
Guest
 
Posts: n/a
#2: Aug 2 '08

re: Is it possible to list directory content with CURL


On 2 aug, 18:48, Steve <dafella...@yahoo.comwrote:
Quote:
What is the method for listing a directory after connecting to the
site with Curl?
When connecting to the site using FTP, it is possible to retrieve
directory listings. When connecting to the site using HTTP, it is only
possible if the server supports it.
Server supports directory listings: http://www.ibiblio.org/pub/
Server denies directory listing: http://www.mylene-avenue.com/huttong2/images/flags/
Server serves page instead of listing: http://www.dmoz.org/World/Nederlands/

When you get a directory listing from a HTTP webserver, it is simply
another webpage. It is a HTML page, which is just made to look like a
directory listing. If you want information out of it, you have to make
a script which parses the HTML. Note that the HTML for different sites
may differ, depending on what webserver of software they have
installed.
Closed Thread


Similar PHP bytes