Posted by jamen on 11/06/02 11:29
Davide wrote:
> I correct the script with yours suggests but seems doesn't work :(
>
> <?php
> if ($handle = opendir('./cover')) {
> while (false !== ($file = readdir($handle))) {
> $files = array($file);
> if (($file != "." && $file != "..")) {
> sort($files);
> foreach($files as $file){
> echo "<img src=\"cover/$file\" alt=\"$file\" border=0>";
> }
> }
> }
> closedir($handle);
> }
>
> ?>
>
if ($handle = opendir('./cover')) {
$files = array();
while (false !== ($file = readdir($handle))) {
if (($file != "." && $file != "..")) {
$files[] = $file;
}
}
closedir($handle);
sort($files);
foreach($files as $file){
echo "<img src=\"cover/$file\" alt=\"$file\" border=0>";
}
}
[Back to original message]
|