Uldeens Posted October 30, 2004 Report Share Posted October 30, 2004 NU tipa man uz http://www.xxx.lv/bildes stav bildes.Es caur ftp clientu sametu tur foto,un tad IR irspejams ar php izvadiit visu bilzu nosaukumus ar linkiem??? Link to comment Share on other sites More sharing options...
bubu Posted October 31, 2004 Report Share Posted October 31, 2004 http://lv.php.net/readdir Link to comment Share on other sites More sharing options...
Venom Posted November 1, 2004 Report Share Posted November 1, 2004 vai vienkārši apacham noņemt direktorijas caurskatīšanas liegumu (un folderim lasīšanas tiesības visiem salikt) Link to comment Share on other sites More sharing options...
Lokomotive Posted January 5, 2005 Report Share Posted January 5, 2005 <?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); } ?> Link to comment Share on other sites More sharing options...
Recommended Posts