Ratings | | Unique User Downloads | | Download Rankings |
73% | | Total: 5,100 This week: 8 | | All time: 519 This week: 22 |
|
Description | | Author |
This class can save picture taken from Webcam to a file or MySQL.
It can take a request sent from a JavaScript script that takes a snapshot of a image taken with the Webcam and saves the image to a server file.
The class serves the path of the saved image as output of the handler script, so the browser can display it to the user.
The image can also be saved to a MySQL database table record. Innovation Award
April 2017
Number 5
Prize: One big elePHPant Plush Mascott |
Many Web sites need to take pictures of their users. One way to achieve this is to take a snapshot of the user image using his computer or mobile device Webcam.
This class can take pictures captured using a Webcam and uploaded to the server, so it can save the images to server files or a MySQL database table.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 2x
Winner: 1x |
|
Details
Webcam in PHP Using html5
Use webcam in PHP using HTML5, Jquery and Save the Image to Database
This repository will help you to integrate and save the captured image to the database or local folder.
webcamClass.php
Here are some code structure to understand the important parts of this class.
$imageFolder="your folder"; - This is your folder where you would like to save the file
showImage() - This function will get the image and return the name including the path
If you want to save the image to database than you can use this function.
changeImagetoBase64() - This function will change the image to base64
saveImageToDatabase() - It will help you to save the image to database
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.