I have PHP working with some system calls (passthru and exec) but for some reason this bit of code is not executing....
I'm trying to execute an htdig 'dig' and 'merge' from a php script, but nothing is getting indexed. The scripts are executable by everyone. As are the conf files and the database files are rwx everyone.
the code is given below - what's strange is that the path given by either $RUNDIG_updater or $HTMERGE_updater will execute perfectly on the command line.
//run indexer
$RUNDIG_updater = "$cfgServerRoot/bose/bin/rundig-depts_update.sh";
$HTMERGE_updater = "$cfgServerRoot/bose/bin/htmerge-depts.sh";
echo"<br>...indexing using $RUNDIG_updater";
system($RUNDIG_updater);
echo"<br>...merging using $HTMERGE_updater";
system($HTMERGE_updater);
How can I put some checkpoints into the code above to find out what's going on. My system logs show nothing.
I hate trying to execute system commands, as there always seems to be a problem.
php_safe_mode is off