1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Is there any way in PHP by which I can get all the directory and file names in a particular site by just supplying the Url of that particular site.
    Suppose I want to get all the file names of a particular site like www.xyz.com , how can I do that ?

    Pl. reply.

  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    If you mean that you are on the outside of a website (as a web client only with no admin rights) I can see no possibility since PHP is a serverside scripting engine. Another scenario would be that the site would be running PHP and a program that could gather the info on diffrent directories, requested by web users.
  4. #3
  5. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Apache (as well as other web servers) can provide directory listings assuming the administrator has enabled that option (typically disabled for security reasons). PHP doesn't necessarily have to enter the picture.

    But like Gash said, if you're on the outside looking in, there's little you can do unless the server admin has enabled dir listings.

Similar Threads

  1. Yahoo Directory Listing
    By abones in forum ASP Programming
    Replies: 3
    Last Post: January 28th, 2004, 08:05 PM
  2. listing a directory, but how to hide some file ext ?
    By Maller in forum PHP Development
    Replies: 2
    Last Post: January 10th, 2004, 10:13 AM
  3. extract a directory from a URL
    By mactoph in forum PHP Development
    Replies: 1
    Last Post: December 24th, 2003, 12:41 PM
  4. Prevent directory listing
    By CiberPete in forum Java Help
    Replies: 1
    Last Post: December 12th, 2003, 06:52 PM
  5. Trying to get directory listing with .htaccess
    By sy5tem in forum Apache Development
    Replies: 4
    Last Post: November 30th, 2003, 10:14 AM

IMN logo majestic logo threadwatch logo seochat tools logo