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

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    I have a file, picture.php3

    I want to be able to call:
    http://mysite.com/picture.php3?name=picturename.jpg

    In picture.php3 i have:
    ______________
    Banner code

    <img src="picturedir/$name">
    ______________

    It should translate to
    <img src="picturedir/picturename.jpg">
    when I call the file with the url I typed.

    How do I do that?
    Thanks

    [This message has been edited by Bjorn (edited October 07, 2000).]
  2. #2
  3. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    England, UK
    Posts
    83
    Rep Power
    14
    In picture.php3 you need:

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    <img src="picturedir/<? echo $name; ?>">
    [/code]

    You need to tell the server that $name is PHP code.


    ------------------
    Girish Gupta
    MusicGoesOn.com

Similar Threads

  1. Store part of URL in session variable?
    By Jonny5uk in forum ASP Programming
    Replies: 4
    Last Post: February 13th, 2004, 07:34 AM
  2. Pointer problem in opening a file
    By LAKI in forum C Programming
    Replies: 13
    Last Post: February 11th, 2004, 08:27 AM
  3. Pointer problems opening file *formatted*
    By LAKI in forum C Programming
    Replies: 4
    Last Post: February 11th, 2004, 06:06 AM
  4. PHP file upload script trouble
    By casbboy in forum PHP Development
    Replies: 9
    Last Post: February 5th, 2004, 07:42 PM
  5. How to read multiple line text file into a variable
    By gatewaycityca in forum Visual Basic Programming
    Replies: 4
    Last Post: January 29th, 2004, 12:26 PM

IMN logo majestic logo threadwatch logo seochat tools logo