如题所述
PHP无法调用手机的摄像头,因为没权限。
而且PHP、NET、JSP这些对于手机来说都不过是HTML网页而已
就算你有能力在手机上配置PHP的环境,也是无法调用摄像头的。
但你不要灰色,我只是纠正一下你问问题的方式。
其实HTML5是可以调用手机的摄像头的,下面直接上代码
<input type="file" accept="image/*" capture="camera"><input type="file" accept="video/*" capture="camcorder">
<input type="file" accept="audio/*" capture="microphone">
看清楚了,第一行是调用摄像头,第二行估计也是,第三行是调用音乐播放器。如果非要和PHP扯上点关系那就这样写
<?php echo '<input type="file" accept="image/*" capture="camera"><input type="file" accept="video/*" capture="camcorder">
<input type="file" accept="audio/*" capture="microphone">' ;?>
温馨提示:答案为网友推荐,仅供参考