Remote access to directory using dir function

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!

Moderator: General Moderators

Post Reply
vikrambhatla
Forum Newbie
Posts: 1
Joined: Mon Oct 18, 2004 2:30 pm
Contact:

Remote access to directory using dir function

Post 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
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post 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...
Post Reply