You are here: Re: Escaped has become is_file help « PHP Programming Language « IT news, forums, messages
Re: Escaped has become is_file help

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация