PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
the only way you can viably read a remote directory is if the directory listing engine is on for the web server. You'll probably have to parse it like a file, rather than like a directory however.
one other option would be to use php's ftp functions, but, that would not exactly let you use dir() to read directories. but it would let you read them...