1.

Solve : View directory of files on other site in PHP?

Answer»

Hello,

I'm looking for a way to list files in a directory of another website on a page using php.

I have tried using the dirLIST function however I am having no luck.

The idea is so that members can BROWSE the SECURE area and access files (Which are contained on a remote server)

Thanks.Why not just open the remote directory in a frame? Quote

View directory of files on other site in PHP
Not possible as far as my knowledge (and sense) extends.

Think about what would be happening if this was possible...Never have do it myself. Others do something like that:
http://urbangiraffe.com/plugins/pageview/
Also, there is a plug-in for Google Chrome.

Oh YEAH, but that's not really what the OP wants.

Quote
to list files in a directory of another website
This isn't possible whatever way you look at it.

However, if there is no default file (i.e. index.htm, default.php etc.) in the directory, then an iframe is very possible.It is a server that I own. No idex file in the directory I need to link to. The issue is that the host of the website has 7GB of space, and all the information is around 23GB, which is hosted on my server. I need the files to update automaticialy so that when the Chief (Fire Co Website) add's information to the remote directory it will appear on the hosted page as a link. I'm not too familar with frames, so any help would be appriciated.I am sure it can be done. Like the other guy said, the directory can not have any index.htn file, or anything like that.
I have a link now on my WoedPress blog at
http://geek9pm.com/

I just now put it there, it is the post name SHOW List of Files
I am GOING to see if I can get it into a frame..

edit: I now have it a s a frame. looks ugly, but works fine.

But that will have to wait. Have some urgent errands to do here in the house. Got to fix a toilet. Really.

You site is nice looking.
  check out scandir()
http://us.php.net/manual/en/function.scandir.php


Discussion

No Comment Found