Search
 
SCRIPT & CODE EXAMPLE
 

PHP

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;
Comment

PREVIOUS NEXT
Code Example
Php :: How to Create a Transient PHP wordpress 
Php :: php code for adding dara 
Php :: How can I share limits across multiple fields gravity forms? 
Php :: Yii::$app-session 
Php :: JsonResource withoutWrapping 
Php :: php read textarea line by line 
Php :: barryvdh laravel dompdf pages total 
Php :: laravel route namespace and prefix 
Php :: customize+forgot+password+laravel 
Php :: flexslider in laravel 5.8 
Php :: php convert datetime to timestamp 
Php :: php tasks 
Php :: Codeingiter Pagination 
Php :: Laravel function to check if image exist or not 
Php :: PHP strcspn — Find length of initial segment not matching mask 
Php :: PHP strspn — Finds the length of the initial segment of a string consisting entirely of characters contained within a given mask 
Php :: php parse_url array function 
Php :: simple_html_dom stream does not support seeking 
Php :: get product price with thousands separator 
Php :: conect_from_db_datalayer 
Php :: laravel short collection by keys based on array 
Php :: use varable on all site pages laravel 
Php :: laravel auditing tray publishing 
Php :: update request php-salesforce-rest-api 
Php :: letzten 3 zeichen aus einem string entfernen php 
Php :: php move uploaded file 
Php :: php polymorphism 
Php :: how to change the colum type in migration laravel 
Php :: php add 1 day hours to unix timestamp 
Php :: str_word_count() 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =