Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Is it possible to list directory content with CURL

 
   Database Forums (Home) -> PHP RSS
Next:  error code 550 permission denied  
Author Message
Steve

External


Since: Jul 18, 2008
Posts: 15



(Msg. 1) Posted: Sat Aug 02, 2008 9:48 am
Post subject: Is it possible to list directory content with CURL
Archived from groups: comp>lang>php (more info?)

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.

 >> Stay informed about: Is it possible to list directory content with CURL 
Back to top
Login to vote
Sjoerd

External


Since: May 19, 2008
Posts: 10



(Msg. 2) Posted: Sat Aug 02, 2008 10:25 am
Post subject: Re: Is it possible to list directory content with CURL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2 aug, 18:48, Steve wrote:
> 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.

 >> Stay informed about: Is it possible to list directory content with CURL 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
PHP / CURL - I installed wordpress along with my apache / php / mysql setup. Everything works fine except when I want to import my posts from blogger. It tells me that I have to install CURL. I went to php.net and cURL's site. Did everything they both said. An...

PHP / CURL - I installed wordpress along with my apache / php / mysql setup. Everything works fine except when I want to import my posts from blogger. It tells me that I have to install CURL. I went to php.net and cURL's site. Did everything they both said. And....

help with php5 and cURL - I am trying to post an array using cURL from one PHP page to another. I can't figure out how to correctly post and read the array on the page that actually receives it. Here is what I have... $session = curl_init(); curl_setopt( $session, CURLOPT_URL...

questions about curl - I was looking at the various cURL options and have a few questions. CURLOPT_HTTPPROXYTUNNEL's being set to true is supposed to tunnel through a given HTTP proxy. Afaik, tunneling is only possible when the CONNECT method is used. Is that correct? Also...

cURL, header & POST. -
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]