Skip to content
Use webcam in PHP using HTML5, Jquery and Save the Image to Database
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
jpeg_camera Add files via upload Jun 7, 2017
webcamImage Create webcam-image-folder.txt Jun 7, 2017
LICENSE Initial commit Jun 7, 2017
README.md Update README.md Jun 7, 2017
action.php Add files via upload Jun 7, 2017
connectionClass.php Add files via upload Jun 7, 2017
index.php Add files via upload Jun 7, 2017
webcam.sql Add files via upload Jun 7, 2017
webcamClass.php Add files via upload Jun 7, 2017

README.md

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
You can’t perform that action at this time.