Results 1 to 4 of 4

Thread: Open Full Folder In Web Editor?

  1. #1
    Join Date
    May 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Open Full Folder In Web Editor?

    I'm looking for a code that like opens a full folder of images in a webpage, so say i got lots of say Manchester United Players and i want to add them to my webpage but i dont want to keep going to image and finding the right image, i just need a code that will open the folder in the page, without doing it 1 by 1 lol

    Bit :s but yh, hope you can help

    Regards,
    Mark

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Something that perhaps shows all images in a directory? Hmm...I wonder what will happen if I put that into Google?

    This might help.

  3. #3
    Join Date
    May 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation

    Why is this not working?
    http://habboarchive.info/icon_preview.php

    Code:
    PHP Code:
    <?php
            $handle 
    opendir ('/home/jxswcfi/public_html/archive/image/icons/');
            while (
    false !== ($file readdir($handle))) {
                if(
    $file != "." && $file != ".." && $file != basename(__FILE__)) {
                    echo 
    '<img src="/home/jxswcfi/public_html/archive/image/icons/'.$file.'"/>'.$file.'';
                }
            }
    ?>
    Last edited by Auks; 05-11-2008 at 11:01 AM.

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    I don't know what you are talking about when you say that it is not working, simply because the link you provided does in fact work. If there is an issue that you are seeing that I'm not, please post what the issue is.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

Bookmarks

Posting Permissions

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