As a server-based language, PHP isn't really intended to control local devices. For security reasons, it is generally prevented from accessing anything on the local system except for a few explicit cases like files uploads and downloads. Javascript can be used for some local stuff (and that can be generated by a PHP program) but even that is limited in what it can (again for security reasons). As per the link below, you might have to use Flash, Silverlight or something like that.
http://stackoverflow.com/questions/219476/using-php-to-access-a-users-webcam
chrishea
Nearly a Posting Virtuoso
1,428 posts since Sep 2008
Reputation Points: 210
Solved Threads: 230