foxsk8 Posted December 6, 2006 Report Share Posted December 6, 2006 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 More sharing options...
blackhalt Posted December 6, 2006 Report Share Posted December 6, 2006 Uzraksti kurā direktorijā meklēt: http://lv.php.net/manual/en/function.opendir.php Šitā arī var: <?php foreach (glob('download/*') as $filename) { echo $filename.'<br />'; } ?> Link to comment Share on other sites More sharing options...
andrisp Posted December 6, 2006 Report Share Posted December 6, 2006 (edited) $dir=@opendir("./"); ? Edited December 6, 2006 by andrisp Link to comment Share on other sites More sharing options...
Recommended Posts