I am trying to draw a small red cirlce on top of an image using the following code:
<?php
Header("Content-type: image/jpeg");
$im = imagecreatefromjpeg(map720.jpg);
$red = imagecolorallocate($im, 255, 0, 0);
imagefilledellipse ($im, 70, 70, 5, 5, $red);
imagejpeg($im,'map',75);
imagedestroy($im);
?>
I get this error:
The image “http://www.mysite.com/map.php” cannot be displayed, because it contains errors.
map720.jpg is in the same directory. Any ideas?