$WshShell->Run() php
<p>My question is about <code>$WshShell-&gt;Run()</code> php method, integrating it with swfTools (converting file pdf to swf). When I run this command in php it gives me a blank page and does not convert the file into swf. But when I run it directly in cmd it converts the file. Please tell me why the error is occuring?</p>

<p>PHP CODE</p>

<pre><code>&lt;?php
$WshShell = new COM("WScript.Shell");
oExec = $WshShell-&gt;Run("d:\SWFTools\pdf2swf.exe C:\wamp\www\flex\zubair.pdf -o d:\zubair.swf", 0, true);
?&gt;
</code></pre>

<p><strong>direcly in cmd</strong></p>

<pre><code>d:\SWFTools\pdf2swf.exe C:\wamp\www\flex\zubair.pdf -o d:\zubair.swf
</code></pre>
