Web UI for ARGUS server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
233 B

6 years ago
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. //set random name for the image, used time() for uniqueness
  3. $filename = time() . '.jpg';
  4. $filepath = 'saved_images/';
  5. move_uploaded_file($_FILES['webcam']['tmp_name'], $filepath.$filename);
  6. echo $filepath.$filename;
  7. ?>