Can you help me with this problem? I want to make program in PHP and use Jquery mobile. I want it to capture a photo from the device’s camera.
What method or function can I use? A php library or something?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Firstly, you are mentioning multiple programming languages here.
Javascriptis a client side language (which means it will run straight from the user’s device).PHPis a server side scripting language (which means you have no control of the code, and it must be run on a server).Secondly, from my knowledge, it’s not yet possible to have access to a device’s camera using Javascript in a browser. You will have to make use of a device’s native functions. I recommend reading about PhoneGap library. PhoneGap will simplify what you want to do, and will reduce the amount of learning time you will need to spend writing an app for each device, as code is very similar across multiple platforms.