I have been trying to get an image randomising script I found to work (and it works well!) but to get it to retireve the list of files from another http server I have space on. After reading the manual entries for opendir() at php.net I have discovered it could not be done. What are the alternatives?
Thanks.
Opendir
Moderator: General Moderators
I was actually thinking of letting the other server handle all of it and just have a small redorect script at my end. But because I took the free option, I dont get PHP support :/.volka wrote:to let the other server provide that list.
e.g. by default directory listing of the webserver or ftp-access or a script that provides the listing or ...
Depends on your access level at this server
I was thinking of finding another free server that had PHP and ~20+ Mb of space.
I am a bit of a n00b at PHP etc. What does default directory listing mean?
Thanks.
The default directory listing would be when you type in http://www.somesite.com/folder/ and all you see is a list of everything in the folder. Yes, the only way your going to get the contents of a remote DIR is if they show this folder listing or you have some kind of FTP access to it.
Thank you for your reply. I do have full FTP access to this particular server (well as far as my account is concerned, 50Mb or something).BigE wrote:The default directory listing would be when you type in http://www.somesite.com/folder/ and all you see is a list of everything in the folder. Yes, the only way your going to get the contents of a remote DIR is if they show this folder listing or you have some kind of FTP access to it.