sto provando integrando questo codice nella pagina web ma non si apre la pagina... mi fa vedere solo un iconcina di errore img

codice:
 


 <div id="webcam"> 

<?php 
// The file you are rotating 
$image = 'webcamlive/webcam.jpg'; 

//How many degrees you wish to rotate 
$degrees = 270; 

// This sets the image type to .jpg but can be changed to png or gif 
header('Content-type: image/jpeg') ; 

// Create the canvas 
$source = imagecreatefromjpeg($image) ; 

// Rotates the image 
$rotate = imagerotate($source, $degrees, 0) ; 

// Outputs a jpg image, you could change this to gif or png if needed 
imagejpeg($rotate) ; 
?>  

</div>