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.
11 lines
233 B
11 lines
233 B
<?php
|
|
|
|
//set random name for the image, used time() for uniqueness
|
|
|
|
$filename = time() . '.jpg';
|
|
$filepath = 'saved_images/';
|
|
|
|
move_uploaded_file($_FILES['webcam']['tmp_name'], $filepath.$filename);
|
|
|
|
echo $filepath.$filename;
|
|
?>
|