Page 1 of 1

PHP File Execution

Posted: Thu Jul 26, 2007 11:55 am
by chull
I am writing a web based registration application for a client. The main identification system uses photos. What I need php to be able to do is open a script file called "take_picture.sh" and execute it. I've tried exec(); backticks; and shell_exec(). So far nothing seems to work. In a nut shell I would like the client to be able to click on a button inside the application that would take the picture and then display the resulting picture. I'll be running this application on a Linux server.

The "take picture" file uses the gstreamer command from linux to take the picture. Does anyone have any ideas on how to accomplish this? Thanks in advance.

Cathy

Posted: Thu Jul 26, 2007 12:32 pm
by xdallen
Have you ensured that PHP has sufficient privilege to invoke the shell for execution?

PHP File Execution

Posted: Thu Jul 26, 2007 1:47 pm
by chull
Could you explain a little more? I believe PHP does have the correct privileges.