how can i capture image from webcam in php?

Need help with Photoshop, the GIMP, Illustrator, or others? Want to show off your work? Looking for advice on your newest Flash stuff?

Moderator: General Moderators

Post Reply
anindya23
Forum Newbie
Posts: 2
Joined: Wed Apr 16, 2008 1:16 am

how can i capture image from webcam in php?

Post by anindya23 »

i want to develop a test site that will capture image using webcam with one button click and save it.
i dont expect complete source code but if anyone can give me basic concept in detail to do this,it would be a great help for me.
Thanx in advance.
Anindya
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: how can i capture image from webcam in php?

Post by Apollo »

Can't be done. PHP runs server side, while most webcams work at the client's side :)

Try something else, like java(script), ajax, etc, i.e. stuff that works client side.
thinsoldier
Forum Contributor
Posts: 367
Joined: Fri Jul 20, 2007 11:29 am
Contact:

Re: how can i capture image from webcam in php?

Post by thinsoldier »

I believe flash has features for using the client's webcam and microphone.
Warning: I have no idea what I'm talking about.
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

Re: how can i capture image from webcam in php?

Post by Sindarin »

Yes, you can do it either with a Java applet or Flash movie,

http://livedocs.adobe.com/fms/2/docs/ww ... 00526.html
jezzicaz789
Forum Newbie
Posts: 1
Joined: Wed Dec 16, 2009 1:08 am

Re: how can i capture image from webcam in php?

Post by jezzicaz789 »

Sindarin wrote:Yes, you can do it either with a Java applet or Flash movie,

http://livedocs.adobe.com/fms/2/docs/ww ... 00526.html
Such a very amazing link! Thanks you for the post.
Forumguru
Forum Newbie
Posts: 10
Joined: Sat Jul 31, 2010 7:15 am

Re: how can i capture image from webcam in php?

Post by Forumguru »

Apollo wrote:Can't be done. PHP runs server side, while most webcams work at the client's side :)

Try something else, like java(script), ajax, etc, i.e. stuff that works client side.
Capturing the images directly from Web Cam through PHP designed Website is always a thrilling dream for me too. But thanks for your info, that it can't be done as PHP runs server side. I think Java Script can solve the issue to capturing image through web Cam.
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

Re: how can i capture image from webcam in php?

Post by Sindarin »

Javascript doesn't provide any functions to interact with devices apart from the keyboard and mouse. So plugins like Flash are your best bet for the moment.
Who knows, maybe in HTML6 there will be a way. ;)
Post Reply