Page 1 of 1

Program Execution problems

Posted: Wed Jun 21, 2006 1:23 pm
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?

Posted: Wed Jun 21, 2006 2:28 pm
by feyd
It's probably a permissions problem. Check to make sure that php's user has execution privledges on this application..

Posted: Wed Jun 21, 2006 5:04 pm
by Weirdan
and use escapeshellcmd() to avoid security issues