How do you create an image in code w/header sent already?
Posted: Wed Jun 15, 2005 9:06 pm
Hey guys, how do you create an image in php code with the header already set?
do you create a seperate file like say image.php with only the 2 lines, and then call this image.php from a src tag like this <img src=image.php ?? Does this work? It seems to not be working for me
Also can you get gdlib for use on XP, my laptop is using XP and I have php installed on my laptop.
Thanks guys
//image.php
header("Content-type: image/jpeg");
imagejpeg($_SESSION['current_image']);
do you create a seperate file like say image.php with only the 2 lines, and then call this image.php from a src tag like this <img src=image.php ?? Does this work? It seems to not be working for me
Also can you get gdlib for use on XP, my laptop is using XP and I have php installed on my laptop.
Thanks guys
//image.php
header("Content-type: image/jpeg");
imagejpeg($_SESSION['current_image']);