Uldeens Posted October 30, 2004 Report 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???
Venom Posted November 1, 2004 Report Posted November 1, 2004 vai vienkārši apacham noņemt direktorijas caurskatīšanas liegumu (un folderim lasīšanas tiesības visiem salikt)
Lokomotive Posted January 5, 2005 Report 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); } ?>
Recommended Posts