Einzelnen Beitrag anzeigen

fwsp
(Gast)

n/a Beiträge
 
#6

Re: [PHP] Dir-Listing Problem

  Alt 15. Feb 2006, 21:28
ich glaub ich hab 'ne lösung:

Code:
<html>

 <body>
  <?php
    include $_SERVER['DOCUMENT_ROOT'].'/php/dirhelpers.php';

    echo '

'.$folder.'</p>';

    $ordner = getcwd();

    $dirs = ListDirs($ordner);
    foreach($dirs as $dir)
    {
      echo '

'.$dir.'</p>';
    }
  ?>
 </body>

</html>
$ordner = getcwd(); ist dabei das entscheidende.
  Mit Zitat antworten Zitat