What actually i want to do is to get contents from the winword file in my web page. for this purpose i used the exec() method, i also tried the following code:
$pCom = new COM("WScript.Shell");
$pShell = $pCom->exec("Notepad.exe");
$sStdOut = $pShell->StdOut->ReadAll; # Standard output
$sStdErr = $pShell->StdErr->ReadAll; # Error
echo($sStdOut);
the above code through an Exception that:
Fatal error: Class 'COM' not found in D:\xampp\htdocs\test\tests\Notepad.php on line 9
I have no idea what to do and how to do this?