If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Aug 2004
    Member #

    How can I list the contents of a directory on my web site?

    When I try

    It comes up with:

    Directory Listing Denied
    This Virtual Directory does not allow contents to be listed.

    Now, the website is being hosted on a MS IIS, and I can access the website through FTP.


  3. #2
    Senior Member
    Join Date
    Aug 2003
    Member #
    In PHP:

    $handle = @opendir(dirname(__FILE__)) or die("Directory not found.");
    $PluginsArr = array();
    while($entry = readdir($handle)){
    if($entry != ".." && $entry != "." && $entry != "index.php"){
    echo "<p>$entry</p>";
    eKstreme - Free website tools!
    fontfox - free fonts Hand-picked quality fonts.

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 04:13 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: