YoungManRiver
IS-IT--Management
All,
The PHP users manual says the way to call an external routine is one of the following:
I've tried all these for the following code:
Nothing seems to actually cause the command to execute, as return is immediate, but when run from cmd line this process takes 5-10 minutes.
Oh, the "D: E:" check is because this process is installed on different drives on different machines. The command "rexx" calls OO Rexx (free download from Also tested the DOS cmd "dir *.* /b /s > dir_list.txt" and no action/reaction.
What do I need to do in order to get my external command to run?
YMR
The PHP users manual says the way to call an external routine is one of the following:
Code:
exec()
system()
passthru()
escapeshellcmd()
pcntl_exec()
Code:
if (isset($HTTP_POST_VARS['fixs'])) {
$drvstr = 'D: E:'
for ($i = 0; $i < words($drvstr); ++$i) {
$tstfil = word($drvstr,$i)."\Local Files\Projects\Bible Topics\SQL & Queries\files_out.rex"
if (file_exists($tstfil)) {
$usedrv = word($drvstr,$i);
$execln = "rexx $tstfil";
}
}
$fil_in = addslashes($usedrv.'\Local Files\Projects\Bible Topics\SQL & Queries\files_out.txt');
$rc = exec(addslashes($execln));
$rc = add_files($fil_in);
$execln = 'rexx '.$usedrv.'"\Local Files\Projects\Bible Topics\SQL & Queries\fix_lines.rex"';
$rc = exec(addslashes($execln));
} // end if isset $HTTP_POST_VARS['fixs']
Oh, the "D: E:" check is because this process is installed on different drives on different machines. The command "rexx" calls OO Rexx (free download from Also tested the DOS cmd "dir *.* /b /s > dir_list.txt" and no action/reaction.
What do I need to do in order to get my external command to run?
YMR