Evan's code for Drawing Circles and Ovals

circle and oval

SLAVE CODE FOLLOWS

<?php
include('includes/header.php');
error_reporting(E_ALL);

// Create image
$image imagecreate(410300);
$gray imagecolorallocate($image238238238);
imagefilledrectangle($image00410300$gray);

$blue imagecolorallocate($image00255);
imagearc($image2001502002000360$blue);

$red imagecolorallocate($image25500);
imagearc($image2001504002200360$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'); ?>