Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: View directory of files on other site in PHP  (Read 3000 times)

0 Members and 1 Guest are viewing this topic.

LtRyan5184

    Topic Starter


    Beginner
  • EMS Supervisor
    • Yes
  • Experience: Experienced
  • OS: Windows XP
View directory of files on other site in PHP
« on: October 19, 2009, 10:59:49 AM »
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.

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: View directory of files on other site in PHP
« Reply #1 on: October 19, 2009, 11:24:15 AM »
Why not just open the remote directory in a frame?

kpac

  • Web moderator
  • Moderator


  • Hacker

  • kpac®
  • Thanked: 184
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 7
Re: View directory of files on other site in PHP
« Reply #2 on: October 19, 2009, 01:04:43 PM »
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...

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: View directory of files on other site in PHP
« Reply #3 on: October 19, 2009, 01:13:07 PM »
Never have do it myself. Others do something like that:
http://urbangiraffe.com/plugins/pageview/
Also, there is a plug-in for Google Chrome.


kpac

  • Web moderator
  • Moderator


  • Hacker

  • kpac®
  • Thanked: 184
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 7
Re: View directory of files on other site in PHP
« Reply #4 on: October 19, 2009, 01:16:38 PM »
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.

LtRyan5184

    Topic Starter


    Beginner
  • EMS Supervisor
    • Yes
  • Experience: Experienced
  • OS: Windows XP
Re: View directory of files on other site in PHP
« Reply #5 on: October 19, 2009, 02:10:53 PM »
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.

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: View directory of files on other site in PHP
« Reply #6 on: October 19, 2009, 05:08:36 PM »
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.
  :D
« Last Edit: October 19, 2009, 09:54:47 PM by Geek-9pm »

michaewlewis



    Intermediate
  • Thanked: 26
    • Yes
    • Yes
  • Experience: Expert
  • OS: Unknown
Re: View directory of files on other site in PHP
« Reply #7 on: October 23, 2009, 12:45:12 PM »