Hi
I have an simple HTML page in which I want to display a webcam image with PHP, using server push. i found some examples on the net, but I haven't been able to display the image properly. The script looks like this :
<?php
$end = "Finish"; // random string
header ("Content-type: multipart/x-mixed-replace;boundary=$end");
print ("--$end\n"); //Start data block
print ("Content-type: image/jpeg\n"); //Define content type
$filename = "geii.jpg"; //Picture
$pic = fopen($filename, "r");
fpassthru($pic);
flush();
fclose($pic);
clearstatcache();
sleep(1);
print("\n--$end--\n");
?>
and the image is loaded as <IMG SRC="camera.php" WIDTH=75>
Can someone tell me what's wrong?
Thank you