PHP File Execution

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chull
Forum Newbie
Posts: 9
Joined: Thu Jul 26, 2007 11:45 am

PHP File Execution

Post 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
xdallen
Forum Newbie
Posts: 3
Joined: Sun Oct 22, 2006 9:49 pm

Post by xdallen »

Have you ensured that PHP has sufficient privilege to invoke the shell for execution?
chull
Forum Newbie
Posts: 9
Joined: Thu Jul 26, 2007 11:45 am

PHP File Execution

Post by chull »

Could you explain a little more? I believe PHP does have the correct privileges.
Post Reply