Results 1 to 4 of 4

Thread: bolGallery

  1. #1
    Join Date
    Oct 2006
    Posts
    2,918
    Tokens
    946
    Habbo
    Verrou

    Latest Awards:

    Exclamation bolGallery

    I dunno but i think something went wrong -.-

    http://orangetrees.wsnw.net/users/badges.php

    Anyone know a better way to list images in a directory or how to fix mine?
    +REP to all help.

    V.
    Quote Originally Posted by Special-1k View Post
    How do you uninstall an internet? I want to uninstall my Google Chrome and
    get firefox but I never really got rid of an internet my dad usually did it for me.
    If you know how post below so I can do this.

  2. #2
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    What went wrong with it?

    PHP Code:

    <?
       $dir 
    'path_to_images_directory_from_this_script';
        
       
    // open specified directory
       
    $dirHandle opendir($dir);
       
    $count = -1;
       
    $returnstr "";
       while (
    $file readdir($dirHandle)) {
          
    // if not a subdirectory and if filename contains the string '.gif' 
          
    if(!is_dir($file) && strpos($file'.gif')>0) {
             
    // update count and string of files to be returned
             
    $count++;
             
    $returnstr .= "<img src=\"$file\" />";
          }
       } 
       
    $returnstr .= '&';
       echo 
    $returnstr;
       
    closedir($dirHandle);
    ?>
    Google helps immensly.
    Last edited by Florx; 19-12-2007 at 03:47 PM.

  3. #3
    Join Date
    Nov 2006
    Location
    Narrich
    Posts
    5,687
    Tokens
    0
    Habbo
    Jamesy...

    Latest Awards:

    Default

    Now that would be awesome to do that javascript that makes images fly around on that page, I'll go do it and take a screenshot!


    Firefox nearly crashed
    Last edited by Jamesy; 19-12-2007 at 04:00 PM.
    Ex-janitor. Might pop in from time to time, otherwise you can grab all my information from http://jamesy.me.uk/

  4. #4
    Join Date
    Oct 2006
    Posts
    2,918
    Tokens
    946
    Habbo
    Verrou

    Latest Awards:

    Default

    Yer, nvm i used another simple PHP script. +rep to both of you.
    Quote Originally Posted by Special-1k View Post
    How do you uninstall an internet? I want to uninstall my Google Chrome and
    get firefox but I never really got rid of an internet my dad usually did it for me.
    If you know how post below so I can do this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •