Matt.F Posted March 11, 2006 Share Posted March 11, 2006 Simple question I think, but the php.net description of this function was a bit confusing. Is it possible to use opendir() to open an http URL instead of a folder on the local server. When I try, I get the following error: "failed to open dir: not implemented"The problem is this: my host requires that any media file be uploaded to a separate server and not the normal FTP. I am trying to implement a podcast system, but to list the files in the back-end the extension I am using uses opendir(). Since the files can not be hosted on the local server, I have to open a URL. Is this possible?Sorry if it's been answered already, but I searched and couldn't find anything to help answer my question. Thanks so much for any help.Regards,[b]Matt[/b] Quote Link to comment Share on other sites More sharing options...
txmedic03 Posted March 11, 2006 Share Posted March 11, 2006 The short answer is no, you must open directories on the local server. You could, however, use the FTP functions in PHP to connect to your other server via FTP in the specified directory and get a directory list. It is just a thought and the only possible solution that springs to mind. There might be others, but I can't think of any right now. Quote Link to comment Share on other sites More sharing options...
Matt.F Posted March 11, 2006 Author Share Posted March 11, 2006 Sounds like a lot of work to recode the component to work off an FTP instead of the local server. Any easier way to do it? Quote Link to comment Share on other sites More sharing options...
High_-_Tek Posted March 12, 2006 Share Posted March 12, 2006 Yea,Hire someone to do it for you :P Quote Link to comment Share on other sites More sharing options...
Matt.F Posted March 12, 2006 Author Share Posted March 12, 2006 Hehe. I'd love to, but unfortunately that's just not an option. I guess I'll just have to see it through.Thanks for the help! Quote Link to comment Share on other sites More sharing options...
txmedic03 Posted March 12, 2006 Share Posted March 12, 2006 Well, the only thing I can say is I would be happy to answer questions on the PHP FTP functions. Quote Link to comment 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.