Configuring a page to display picture

Photo : Alexandre PERETJATKO

Photo : Alexandre PERETJATKO

Configuring a page to display picture

Please, note that this tutorial will not deal how to setup a LAMP.
100% Complete

As we have seen before (see "command.sh"), the picture is transfered in a directory name /var/www/html/webcam/pictures, so the PHP script will display this picture and reload it every minute (60 seconds).

Here is the index.html :

<html lang="en">
  <head>
    <title>My beautiful webcam</title>

    <META HTTP-EQUIV="Refresh" CONTENT="60; URL=index.html">
    
  </head>
  <body>

        <div data-src="pictures/viewcam.jpg"></div>

  </body>
</html>

Copyright © 2015 Alex-design.fr All rights reserved.