Answers for "how to save snap in webcap in php codeigniter"

PHP
0

how to save snap in webcap in php codeigniter

<?php

// new filename
$filename = 'pic_'.date('YmdHis') . '.jpeg';

$url = '';
if( move_uploaded_file($_FILES['webcam']['tmp_name'],'upload/'.$filename) ){
 $url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['REQUEST_URI']) . '/upload/' . $filename;
}

// Return image url
echo $url;
Posted by: Guest on August-26-2020

Code answers related to "how to save snap in webcap in php codeigniter"

Browse Popular Code Answers by Language