Posted by Confused but working on it on 09/12/07 14:47
On 2007-09-12 05:11:01 -0700, Jerry Stuckle <jstucklex@attglobal.net> said:
>> Thanks for any help.
>> :)
>> <snooze>
>>
>
> You can't replace the readdir() call - that's what fetches the next
> directory entry. is_file() is something completely different.
This is what I finished with last night:"
<?php
//Open images directory
$dir = opendir("images");
//List files in images directory
while (($file = readdir($dir)) !== false)
{
while (($file = is_file($dir)) == true)
{
echo "<img src='images/$file' class=\"pad1em\">";
}
}
closedir($dir);
?>
Doesn't displa my images but doesnt break eaither. Going to just trying
to match .jpg before gopine to the echo...
Thx for your help
[Back to original message]
|