nejolley Posted November 26, 2008 Share Posted November 26, 2008 I want to be able to list the contents of a folder that resides on a different server other than on my web server. Is there a way to accomplish this? I played around with opendir() but could only list contents that actually resided on the web server itself. Quote Link to comment https://forums.phpfreaks.com/topic/134420-listing-folder-contents/ Share on other sites More sharing options...
niwa3836 Posted November 26, 2008 Share Posted November 26, 2008 Got a sneaking feeling the answer here is no. I am not an expert at this but remember reading something in these forums about why not. Might be worth doing a quick search. If not someone will probably know of their head. Quote Link to comment https://forums.phpfreaks.com/topic/134420-listing-folder-contents/#findComment-699815 Share on other sites More sharing options...
Mark Baker Posted November 26, 2008 Share Posted November 26, 2008 Not unless you've been granted access to that server. Assuming you have: If it's also running http, then you can use curl to get a directory listing for folders under htdocs, otherwise you can use ftp from within php Quote Link to comment https://forums.phpfreaks.com/topic/134420-listing-folder-contents/#findComment-699819 Share on other sites More sharing options...
nejolley Posted November 26, 2008 Author Share Posted November 26, 2008 I'm the administrator so by all means access shouldn't be a problem. I'll look into these options you mentioned and see what I can work out. Thanks, Quote Link to comment https://forums.phpfreaks.com/topic/134420-listing-folder-contents/#findComment-699840 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.