Exception thrown when using WScript via COM in PHP
- by user198729
try {
$cmd = 'php path_to_file.php args';
$WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run($cmd, 1, false);
} catch( Exception $e )
{
echo 'Caught exception: ', $e->getMessage(), "\n";
}
It reports:
Caught exception: Source: Unknown
Description: Unknown
Has anyone met this kind of problem ?