Results 1 to 4 of 4

Thread: what can i do with "img src"

  1. #1

    Thread Starter
    Junior Member phrodu's Avatar
    Join Date
    Dec 2002
    Location
    Telletubbie Land
    Posts
    18

    what can i do with "img src"

    is there anything i can do with with a php file by calling it through <img src=whatever.php>
    the only thing ive seen done is generating images but i think that needs some gd library or something. I don't have that so is it possible to do anything else like putting an image or text or anything?

  2. #2
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    The img tag only alows an output that links to an image.

    But you can do many things in the script before your image output. Such as logging user information, or a randomizing a link, as long as it does not return a value, and an image is the output, you can do everything.

  3. #3

    Thread Starter
    Junior Member phrodu's Avatar
    Join Date
    Dec 2002
    Location
    Telletubbie Land
    Posts
    18
    how can i make an image output without that labrary that i was talking about?

  4. #4
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    PHP Code:

    <?php
    header
    ("Location: yourpic.jpg");

    //your code

    ?>
    make sure nothing is outputing before or after the header.

Posting Permissions

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



Click Here to Expand Forum to Full Width