Auto Display Images from the directory :P

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Auto Display Images from the directory :P

    PHP Code:
    <?php
        $handle 
    opendir ('./');
        while (
    false !== ($file readdir($handle))) {
            echo 
    '<center><img src="'.$file.'"/><br />'.$file.'<br/></center>';
        }
    ?>
    Reallly Reaallly Bored!!
    Hope this is usefull.
    It displays Images Automatically which exist in the current Directory!
    Easy to Use!
    Working Fine!
    Cheers ;)

    #2
    old snippets

    Comment

    Working...
    X