On Tue, 10 Aug 2004 15:04:42 -0500, Stephen Craton <[EMAIL PROTECTED]> 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-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php