Afficher un message
Vieux 12/09/2007, 16h47   #3
Confused but working on it
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Escaped has become is_file

On 2007-09-12 05:11:01 -0700, Jerry Stuckle <jstucklex@attglobal.net> said:
>> Thanks for any .
>>
>> <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

  Réponse avec citation
 
Page generated in 0,05799 seconds with 9 queries