Thread: How to do this?

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    I'm new to PHP and I'm wondering how to do this:

    I want to execute the script using http://blalba.com/script.php?pic=some.jpg
    And then I want the script to generate a page viewing the pic like this: <img src="http://blabla.com/images/some.jpg">

    How do I do that? Do I need to specify functions and stuff?

    ------------------
    Johan SahlÚn
    www.cerberodesign.net
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    Answer:

    script.php
    ////////////////
    <img src="http://blabla.com/images/<? echo $pic; ?>">



    ------------------
    **********************
    Holev Ezim
    webmaster@builder.co.il
    **********************
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    Thanks!

    ------------------
    Johan SahlÚn
    www.cerberodesign.net
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    51
    Rep Power
    15
    lol sorry, found that kind of amusing, guy was looking for like a big script, and it was one line.

    ------------------

IMN logo majestic logo threadwatch logo seochat tools logo