Page 1 of 1

how can i capture image from webcam in php?

Posted: Mon Jan 12, 2009 2:50 am
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

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

Posted: Mon Jan 12, 2009 4:23 am
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.

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

Posted: Sat Apr 11, 2009 11:42 am
by thinsoldier
I believe flash has features for using the client's webcam and microphone.

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

Posted: Fri May 29, 2009 8:44 am
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

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

Posted: Wed Dec 16, 2009 1:10 am
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.

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

Posted: Sun Aug 01, 2010 7:11 am
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.

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

Posted: Thu Sep 23, 2010 3:26 am
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. ;)