Forum Moderators: coopster

Message Too Old, No Replies

Query string with pictures?

GD function

         

rokec

3:27 pm on Feb 21, 2007 (gmt 0)

10+ Year Member



<img src="img.php?first">

img.php-----

if ($_SERVER[QUERY_STRING]=="first") {
//GD image function for first image
} else {
//GD image function for second image
}

Will that work?

mcavic

4:41 pm on Feb 21, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, you just have to output the correct Content-Type, and make sure there's no other output except the image.

For example:

header("Content-Type: image/jpeg");
//GD image function