Evan's code for Drawing Circles and Ovals
SLAVE CODE FOLLOWS
<?php
include('includes/header.php');
error_reporting(E_ALL);
// Create image
$image = imagecreate(410, 300);
$gray = imagecolorallocate($image, 238, 238, 238);
imagefilledrectangle($image, 0, 0, 410, 300, $gray);
$blue = imagecolorallocate($image, 0, 0, 255);
imagearc($image, 200, 150, 200, 200, 0, 360, $blue);
$red = imagecolorallocate($image, 255, 0, 0);
imagearc($image, 200, 150, 400, 220, 0, 360, $red);
// Save image to a file
$filename = 'circles_temp.png';
imagepng($image, $filename);
imagedestroy($image);
?>
<h1>Evan's code for Drawing Circles and Ovals</h1>
<img src="<?php echo $filename; ?>" alt="circle and oval">
<hr><br>SLAVE CODE FOLLOWS<br><br>
<?php highlight_file(__FILE__); ?>
<?php include('includes/footer.php'); ?>