bin noch ziemlicher anfänger in PHP und habe mir ein script zusammen gebastelt um die dateien eines ordners in einer "select"-liste auszugeben
sieht so aus :
<select name="fichier">
<?php
$rep = opendir('images');
if(!$rep)
exit;
$i = 0;
while($file = readdir($rep)) {
if($file !='.' && $file !='..' && $file !='.DS_Store' && $file !='thumbnails.php' ){
echo '<option ="'.$value++.'">'.$file.'</option>';
}
}
closedir($rep);
?>
</select>
sieht so aus :
<select name="fichier">
<?php
$rep = opendir('images');
if(!$rep)
exit;
$i = 0;
while($file = readdir($rep)) {
if($file !='.' && $file !='..' && $file !='.DS_Store' && $file !='thumbnails.php' ){
echo '<option ="'.$value++.'">'.$file.'</option>';
}
}
closedir($rep);
?>
</select>