Jump to content
php.lv forumi

Izvadit direktorijas failu nosaukumus


Recommended Posts

  • 2 months later...
Posted
<?php

if ($handle = opendir('bildes)) {
  while (false !== ($file = readdir($handle))) { 
      if ($file != "." && $file != "..") {    

echo "<a href='http://www.xxx.lv/bildes/".$file."'>".$file."</a>\n<br>";

  } 
  }
  closedir($handle); 
}

?>

×
×
  • Create New...