logo

:: Running opendir() on a remote address ::

Question:

I tried opendir("somedir/") and it works fine. But how do I use opendir to open the directory of another website?

example: opendir("http://www.domainname.com/");


Answer: It's not possible to do that and we should be glad that it's not possible. Because otherwise it would be a big security risk for our website.

<< Back to Questions and Answers

© Copyright php-etc.com 2010. Please contact the webmaster for all enquiries.