Load an image up from index.php

Discussion in 'PHP' started by Standup Media, Jun 1, 2006.

  1. #1
    Hi,

    How do i load an image up from index.php

    i wont it somthing like index.php?pic=done.gif

    from there it will then load the image

    /images/done.gif

    Is there a script out there like the one i need?

    Thanks
     
    Standup Media, Jun 1, 2006 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    Something like this would work...

    
    if(isset($_GET['pic'])){
    echo "
    <img src=\"/images/$_GET[pic]\" />
    ";
    }
    
    PHP:
     
    jestep, Jun 1, 2006 IP
  3. Standup Media

    Standup Media Active Member

    Messages:
    176
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    68
    #3
    Thankyou so much, i owe you one.

    you need hosting let me know, ill set up up on my best 4cpu server ;)

    Thanks
     
    Standup Media, Jun 1, 2006 IP