-=HELLBENDER=- Posted February 25, 2007 Report Share Posted February 25, 2007 Kaa lai panaak ka iejiet blablabla.lv/kkadssuuds/index.php un vinjs uzraada visus failus aks ir taja kkadssuuds mapee Liidziigi kad nav indexa... Link to comment Share on other sites More sharing options...
martins256 Posted February 25, 2007 Report Share Posted February 25, 2007 <?php $dir = "/etc/php5/"; // Open a known directory, and proceed to read its contents if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { echo "filename: $file : filetype: " . filetype($dir . $file) . "\n"; } closedir($dh); } } ?> Link to comment Share on other sites More sharing options...
blackhalt Posted February 25, 2007 Report Share Posted February 25, 2007 http://lv.php.net/manual/en/function.glob.php Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted February 25, 2007 Author Report Share Posted February 25, 2007 (edited) Paldies abiem! Pagaidam iznaaca shis <body bgcolor="black"> <?php foreach (glob("*.*") as $filename) { echo "<a href=\"".$filename."\">".$filename."</a><br/>"; } ?> Demo: http://reper.oo.lv/file.php Gribeetu panaagt lai taja lista arii raadas faila lielums un lai vinjs neuzradiitu php/html/htm/asp/db failus! Kaads zin kaa lai to panaak???? Ir kkads $killtp vai kkas taads bet tur jaavada katrs fails atsevisci un tas ir liels derbs :( Jo faili ir kaadi 100+- Edited February 25, 2007 by -=HELLBENDER=- Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted March 9, 2007 Author Report Share Posted March 9, 2007 tieshaam neviens nezin??? Link to comment Share on other sites More sharing options...
hackerman Posted March 9, 2007 Report Share Posted March 9, 2007 http://php.lv/f/index.php?showtopic=6852 Link to comment Share on other sites More sharing options...
Recommended Posts