AXIS 2100

2009-01-14

To be able to view pictures from 2 axis 2100 camers located on the local network on the external website I have a php script that delivers pictures to a html file upon request.

For each camera I need a php file, lets call this one
getimage1.php

<?php
header("Content-type: image/jpeg");
$httpfile = file_get_contents("http://guest:guest@192.168.1.12/axis-cgi/
jpg/image.cgi?resolution=320x240");
echo $httpfile;
?>

Repeat for each camera, replace the IP number, resolution and username/password for your needs.

Then a very simple html file to view the result;
<html>
<body>
<img src=getimage1.php>
<br>
<img src=getimage2.php>
...
...
</body>
</html>

Navigering