This is getting an image from graph2.php: a white square 200x100 with a red circle in the middle


This page has no PHP, the html to display the image is

<?php 
//Create an image generated by PHP
//Make sure there are no spaces outside the php script 
 $image = ImageCreate(200, 100);  
 $yellow = imagecolorallocate($image,255, 255, 0);
 $red = imagecolorallocate($image,255, 0, 0);
 imagefill($image, 0, 0, $yellow);  //start fill in left top 
 imagefilledellipse($image,100,50,40,40,$red);//Add a red circle in the middle with a radius of 40
 header("Content-Type: image/jpeg"); //Tell browser file type 
 imagejpeg($image); //Output the image as a jpeg 
 imagedestroy($image); //Free up resources
?>

INDEX, Introduction, Example 1, Example 2MAIN INDEX
EXAMPLES INDEX

Copyright © Zebra0.com
All rights reserved worldwide.

 
 

Example 2