Jump to content

Accessing Remote Directories


sammermpc

Recommended Posts

I'm working on a php parser that has to batch process many files in different directories, some mounted on different file servers. Everything goes well, and during testing, everything works perfectly for LOCAL directory access. Unforunately, when I use opendir with a URL (opendir(http://ect...), I get the error:

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Warning: opendir(http://somewebsite.someplace.edu/folder/folder/) [function.opendir]: failed to open dir: not implemented in /home/myname/public_html/folder/file.php on line 229[/quote]

I've been browsing around the web and most people's problems with this error seems to be that they are using the web address syntax when they should be using the local folder one. I am pretty sure this is not my problem, as I need to log on to a remote server to obtain the necessary files (it would be impractical to move them).

So what gives? I've seen some vague talk about changed within config.php, though nothing conclusive.
Link to comment
Share on other sites

[!--quoteo(post=383004:date=Jun 12 2006, 05:50 PM:name=sammermpc)--][div class=\'quotetop\']QUOTE(sammermpc @ Jun 12 2006, 05:50 PM) [snapback]383004[/snapback][/div][div class=\'quotemain\'][!--quotec--]
I'm working on a php parser that has to batch process many files in different directories, some mounted on different file servers. Everything goes well, and during testing, everything works perfectly for LOCAL directory access. Unforunately, when I use opendir with a URL (opendir(http://ect...), I get the error:
I've been browsing around the web and most people's problems with this error seems to be that they are using the web address syntax when they should be using the local folder one. I am pretty sure this is not my problem, as I need to log on to a remote server to obtain the necessary files (it would be impractical to move them).

So what gives? I've seen some vague talk about changed within config.php, though nothing conclusive.
[/quote]


UPDATE: I think the central issue is that though fopen can work with both paths and urls, it appears that opendir cannot, so that even for the purpose of opening a remote directory you must use fopen. That sound likely to anyone?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.