Re: Read External Directory
| From: | Justin Patrin | Date: | Tue, 10 Aug 2004 20:56:24 +0000 |
| Subject: | Re: Read External Directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193389@lists.php.net to get a copy of this message | ||
On Tue, 10 Aug 2004 15:04:42 -0500, Stephen Craton
<webmaster@melchior.us> wrote:
> Hello,
>
> I'm in need of some help here. I'm working on a search engine script that
> searches basically anywhere. One thing I'm trying to do is open an external
> directory to read all the files to search. However, I can't just put a URL
> into the readdir() function without getting an error.
>
> How would I go about reading an external directory?
If you're talking about a URL "directory" then you can't. You can only
get what the webserver sends to you. If the result page happens to be
a directory listing, you can parse it for links to files the same as
any normal webpage.
>
> Thanks,
> Stephen Craton
> http://www.melchior.us
> http://php.melchior.us
> http://www.chatness.us
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--