WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   script für anzeigen des verzeichnisinhalt (http://www.wcm.at/forum/showthread.php?t=138265)

mqs 01.07.2004 16:47

ein simples filelisting ...
ich hoffe das hilft weiter

PHP-Code:

if(!$dir$dir "."
$files = array(); 
$open opendir($dir); 
while (
$file readdir($open)) { if ($file != "." && $file != "..") { $files[] = $file; } } 
closedir($open); 
sort($files); 
reset($files); 

while (
$files

echo 
$files[0];
array_shift($files); 



Potassium 01.07.2004 16:51

oder auch
PHP-Code:

<?
$handle
=opendir('.');
$Body "Index von ".basename(getcwd());
while (
$file readdir ($handle)){
    if (
$file != '.' && $file != '..') {
            
$Body.= "<div align='center'>[url='$file']$file[/url]
 </div>"
;
    }
}
closedir($handle);
echo 
$Body;
?>


wickie 01.07.2004 17:12

jetzt is es fix: kein php auf meiner seite möglich. :mad:

Potassium 01.07.2004 17:18

Zitat:

Original geschrieben von wickie
jetzt is es fix: kein php auf meiner seite möglich. :mad:
wenn du wechseln wills:
infos:
http://www.nightman.at/Index.asp?Akt...rvice=Webspace

anmeldung:
http://www.nightman.at/Index.asp?Akt...takt=Anmeldung

weitere fragen:
admin@nightman.at
:D


Alle Zeitangaben in WEZ +2. Es ist jetzt 16:56 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag