windows commands are not excecute in my php script
<p>I have a java file and it will generate a report. I want to execute this within in a php script. Im using the exec() function in php:</p>

<pre><code>&lt;?php
$output = array();
$return  = 0;
exec("D:");
exec("cd class");
exec("java login username password id name Daily Detailed  20120820",$output,$return);
?&gt;
</code></pre>

<p>When I execute this commands in windows command prompt it works properly. But not in a php script?  </p>
