Browse Source

add capture function

cedric 10 tháng trước cách đây
mục cha
commit
d92a62fa70
1 tập tin đã thay đổi với 36 bổ sung2 xóa
  1. 36 2
      www/index.php

+ 36 - 2
www/index.php

@@ -1,5 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <title>A adinville webcam</title>
+</head>
+<body>
+
+<p>The content of the document......</p>
+
+
+<?php
+$output = shell_exec('fswebcam -r 1920x1080 --bottom-banner /var/www/my_webapp/www/image.jpg');
+echo "<pre>$output</pre>";
+?>
+ 
+
 <?php
 
-echo "Hello World! bob";
 
-?>
+
+
+echo '<img
+        class="fit-picture"
+        src="image.jpg"
+        height="600"
+        alt="Grapefruit slice atop a pile of other slices" 
+    />';
+
+
+
+?>
+
+
+</body>
+
+</html>
+
+
+