Can you use FTP to the remote server? If so, you could either use the PHP's FTP functions, or possibly opendir with the FTP wrapper ("ftp://" instead of "http://").
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Thanks for the response. I don't think i'm able to use opendir. I will instead use the php ftp functions. Although i worry a little about resource time, if i'm opening up lots of ftp connections all the time.
I'm not sure there's a big difference between opening up a FTP resource or using a http URL wrapper via opendir(). Certainly the latter has few less lines of PHP code to parse and process, but once you get "under the hood", there may not be that much difference. (Or not, I couldn't be sure without doing some metering.)
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
PS: Don't forget to consider some sort of caching mechanism, especially if you don't expect the directory data to be changing minute to minute.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks