Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

How to run web cam in php

Hello Dear

I want to know how open web cam in php

Such as Facebook , Chat , Etc

Thank you

2 Answers

Just read this post on Stackoverflow: http://stackoverflow.com/questions/9756257/how-to-access-webcam-with-javascript

Should answer your questions :p

With php you could only stream a video from a webcam that runs on the same machine and thats not what you want I think

Best Answer <3

Jeff Lemay
Jeff Lemay
14,268 Points

PHP is a server-side language, I think you would need something like Javascript to prompt a user to open their web cam.

i wante Code

Konrad Pilch
Konrad Pilch
2,435 Points

xd i recommend JS basics if you dont know it ;)

lol, making a small contact that let you install software and you can look at them form their cam xd , why did this camed to my mind. What website are you builiding ? :D

i builiding chat :p

Konrad Pilch
Konrad Pilch
2,435 Points

aa :D cool, if you finish i woulb be happy to see it :D

Thank you and I will be very happy