Exception thrown when using WScript via COM in PHP

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-03-12T18:04:30Z Indexed on 2010/03/12 18:07 UTC
Read the original article Hit count: 293

Filed under:
|
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 ?

© Stack Overflow or respective owner

Related posts about php

Related posts about wscript