Page 1 of 1

Remote access to directory using dir function

Posted: Mon Oct 18, 2004 2:33 pm
by vikrambhatla
i want to open or read remote directory in my php file

i m using http://www.secured.com SSL server for storing my files i want to access these files from anyother domain using

dir(filapath) where filepath='http://www.hostname.com/filename';

how to read the directory ?

plz help me out of this problem
thank you

Posted: Mon Oct 18, 2004 3:09 pm
by m3mn0n

Posted: Mon Oct 18, 2004 4:26 pm
by feyd
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.

Posted: Mon Oct 18, 2004 8:15 pm
by rehfeld
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...