How do you get the php code to output an an image so that it can be put on a sig or something?
Like online things and stuff
Offline
YAY Documentation!
Edit:
$imghandle = imagecreatefrompng('http://somewebsite.co.uk/linktosomefile.png') //You can use imagecreatefrom[many types here]. header('Content-Type: image/png');//Tells the persons browser you are sending a png image. imagepng($imghandle); //Echos the image to the page. imagedestroy($imghandle); //Removes the processed image from memory
Last edited by rookwood101 (2012-03-04 18:04:47)
Offline
rookwood101 wrote:
YAY Documentation!
Edit:Code:
$imghandle = imagecreatefrompng('http://somewebsite.co.uk/linktosomefile.png') //You can use imagecreatefrom[many types here]. header('Content-Type: image/png');//Tells the persons browser you are sending a png image. imagepng($imghandle); //Echos the image to the page. imagedestroy($imghandle); //Removes the processed image from memory
That's really helpful!
Offline
jji7skyline wrote:
rookwood101 wrote:
YAY Documentation!
Edit:Code:
$imghandle = imagecreatefrompng('http://somewebsite.co.uk/linktosomefile.png') //You can use imagecreatefrom[many types here]. header('Content-Type: image/png');//Tells the persons browser you are sending a png image. imagepng($imghandle); //Echos the image to the page. imagedestroy($imghandle); //Removes the processed image from memoryThat's really helpful!
![]()
Your welcome There's loads of other stuff you can do, but I figure you can read
Offline
rookwood101 wrote:
jji7skyline wrote:
rookwood101 wrote:
YAY Documentation!
Edit:Code:
$imghandle = imagecreatefrompng('http://somewebsite.co.uk/linktosomefile.png') //You can use imagecreatefrom[many types here]. header('Content-Type: image/png');//Tells the persons browser you are sending a png image. imagepng($imghandle); //Echos the image to the page. imagedestroy($imghandle); //Removes the processed image from memoryThat's really helpful!
![]()
Your welcome
There's loads of other stuff you can do, but I figure you can read
![]()
Thanks for the help
I made this with it.
Offline