By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,967 Members | 1,684 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,967 IT Pros & Developers. It's quick & easy.

How to intregrate a Web Camera in PHP pages

P: 3
Dear Sir/Madam

With a request I would like to submit that I am developing an application in PHP where I want to use the following features as

1. On a click button of a PHP page, a live web camera should appear and capture the photograph of a person
2. On clicking the save button, the image/photo should store in database.

I am using backend as a MSSQL 2000.

It is kindly requested to help me and guide please.

With Regards

Sep 3 '08 #1
Share this Question
Share on Google+
5 Replies

Expert 100+
P: 938

This sounds like a lot of fun. I' assuming you can read and use the internet so I am wondering why you have not followed the post guidleines properly.

If you want a script that will do this for you either Google for a free on or post a job here on bytes and pay someone to do it for you.

If you are developing this yourself that's great and this is the place to get help. In order to get help please submit the following:

1. The code you are having problems with - using code tags
2. Explain what the code should do
3. Explain what the code is doing that it should not do
4. Explain what the code does not do that it should do

Providing this information will get you a better answer than this one.

Sep 3 '08 #2

P: 3
Please guide and suggest the

How to invoke the live web camera: whether any class or control avilable for enabling it such as I used in VB6 (live camera control enables the web camera to snap photos)

Since I am a very new in PHP so request to guide me the stpes pl.

Sep 3 '08 #3

Expert 100+
P: 938
Please guide and suggest the

Since I am a very new in PHP so request to guide me the stpes pl.

The best place to start is to Google for PHP Tutorial. the W3Schools offering is very good as are many others. there are also some great articles here on Bytes that will help get you through the basics.

Once you have a handle on the basics you will need to start developing something. Then post back with specific questions supplying as much info as possible - including code in code tags.

One thing I would like to point out is that PHP is a server side language and I'm assuming the webcam is on the client side so I'm not sure what will be possible. This is not something I have ever done.

If you know how to do this in another language then figure that out and then look at how to convert that code to PHP. That's how I really got started in PHP.

Sep 3 '08 #4

P: 5

Try this one:
Sep 5 '08 #5

P: 258
PHP is a server side script and can not capture a web camera photo on any page. What you need is to use a client side script. The only scripting language I can suggest is (Action script)
I'v seen people doing this with (Flash + Action Script). One of the most amazing featurs of flash is that it can capture camera photo or even record microphone voice and send them directly to the server to be saved on a file or database.

There are many resources to learn flash and actionscript. One of them is

Hope it helps

Good luck
Sep 5 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.