The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

how can i capture image from webcam in php?

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.

You have to realize that PHP is a server side language.
You will not be able to capture a video from a webcam that is not connected to the server directly.

Appart from that, I don't know how you could do it.
PHP is not designed for that, and I don't think that you can dialog with a low-level hardware directly.
You would need to write a C extension for PHP that would do the bridge between V4L (Video for linux) and something else.

Most people doing this use flash->red5/haxevideo/flash media server/wowza media server
Flash will capture video from a webcam and stream it to one of the above server applications which will record to a .flv file on the server