Program Execution problems

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
yue520
Forum Newbie
Posts: 3
Joined: Fri Jun 16, 2006 2:01 pm

Program Execution problems

Post by yue520 »

I am new to PHP. Any help will be appriciated.

I need to run a external program called PopUp as

$runPopup = "Pop_Up app/classifiers uploads/" . $_REQUEST['imgIndexName'] . " pnm result/";

shell_exec("$runPopup");

The program runs about 5 min and creates bunch of result files, currently, I can't get it to run. But it runs fine on command line.

I am not sure why, Does anyone know how to check the status of the program somehow(errors, etc)? or what did I do wrong?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It's probably a permissions problem. Check to make sure that php's user has execution privledges on this application..
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

and use escapeshellcmd() to avoid security issues
Post Reply