in reply to Open Remote Directory
I find it very unlikely that you have a directory named 'http://myserver.com/images', and as you seem to be aware, opendir works on DIRECTORIES, not URLs.