web cam saving foto

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kanaps
Forum Newbie
Posts: 13
Joined: Tue Nov 23, 2004 9:23 am
Location: UK
Contact:

web cam saving foto

Post by kanaps »

How can I connect web cam to the HTML/PHP page, make a photo and save it in the folder at server or anywhere?

Thank you for your help.
Kanaps
djot
Forum Contributor
Posts: 313
Joined: Wed Jan 14, 2004 10:21 am
Location: planet earth
Contact:

Post by djot »

-
Hi,

You don't really want to code this? Perhaps you should search for some webcam software (freeware available also), that does the job for you and at least transfers the files to a ./webcam/ -folder. Rest could be done with php than easily.

djot
-
kanaps
Forum Newbie
Posts: 13
Joined: Tue Nov 23, 2004 9:23 am
Location: UK
Contact:

Post by kanaps »

yes, but it is a problem if I am doing the code for customer registration. So it will be difficult for customers to use different programm and than come back on HTML/PHP pages for assigning it to created customer.

But can you tell me any name of the programm that will be saving foto in preset directory.
Thank you,
Kanaps
djot
Forum Contributor
Posts: 313
Joined: Wed Jan 14, 2004 10:21 am
Location: planet earth
Contact:

Post by djot »

-
Hi,

can't tell you names of programs, but I know there are many. So just google a bit.

And how do you think you can get webcam images form your customers webcam/PCs? And how should this work with server side php? Even with client side "whatever" you can't get the images.

djot
-
kanaps
Forum Newbie
Posts: 13
Joined: Tue Nov 23, 2004 9:23 am
Location: UK
Contact:

Post by kanaps »

it will be running on local host only. So when client registers, they get to point where img from web cam will be done and saved... the question is how can I have web interfase that when person presses FOTO that img that on the screen saves to JPG. IS theres a way of doing PRINT SCREEN over the web code?
djot
Forum Contributor
Posts: 313
Joined: Wed Jan 14, 2004 10:21 am
Location: planet earth
Contact:

Post by djot »

-
So you have to search software that acts as a server on your local (webcam) system, and provides an web-interface (via whatever, java?).

djot
-
kanaps
Forum Newbie
Posts: 13
Joined: Tue Nov 23, 2004 9:23 am
Location: UK
Contact:

Post by kanaps »

yes, but they will not give me bit of code or it will not be in help file.. what i mean is event if I will be ablo to run web cum server.. it will be in separete page. Question is how will I be able to connect to my page? orjpg foto?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

This is not a PHP issue. It is most likely possible to do what you are asking but will require apache+PHP to be installed on the users server, which is inneficient way to accomplish your task.

You are going to need to use some sort of client side scripting language.
kanaps
Forum Newbie
Posts: 13
Joined: Tue Nov 23, 2004 9:23 am
Location: UK
Contact:

Post by kanaps »

YEE that is FINE!! I only need it for LOCAL computers which will be installed for CUSTOMERS REGISTRATION. They will have a touch screen and webcam which supposed to make the foto and save it in database.

So I am talking about local host which will be setup to run exact PHP pages.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

PHP is definantly not a very good choice for this project, except for maybe inserting the actual pictures/info into the database. Look at how other programs/applications handle it and maybe it will give you an idea.

We arn't here to give you code, but instead hint you towards your goal.
Seems to me you arn't trying anything for yourself.
kanaps
Forum Newbie
Posts: 13
Joined: Tue Nov 23, 2004 9:23 am
Location: UK
Contact:

Post by kanaps »

The answer I am trying to find is if someone can point me to something like: you will need to use +commsd . look in php for more info.. that would help. becouse right now I have no idea where to look and Iguess that is I am here.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

PHP has the ability to connect to the Windows API so anything that is possible with the API, can be done via PHP. And since the webcam is connected via a plug-n-play device (USB) to Windows, it might be possible using the API.

I'd recommend for you to read up at Microsoft's API resource site to see if there is a function that can connect to a USB device and capture the image.

If you cannot find anything, then I suggest searching for a program that can capture images (or even using one that came with the camera) and just extracting images from the folder where it places the captured pictures.

Hope this helps.
Post Reply