Jump to content
php.lv forumi

failu scripts


foxsk8

Recommended Posts

Luk man viens scripts

 

<?php

$dir=@opendir("./");

while($file=@readdir($dir)){

if ($file!="." && $file!=".." && $file!="dirlisting.php") {

if (!is_dir($file)) {

print "<a href=files\"$file\">$file</a><br/>";

}

}

}

?>

 

Ka lai piedabu klat ka vins rada failus no kadascitas mapes piem., no files/ vai download/ nevis visu sakuma direktoriju?

Link to comment
Share on other sites

×
×
  • Create New...