""Guido E. Smit"" <[EMAIL PROTECTED]> wrote in message
9b4tur$6ah$[EMAIL PROTECTED]">news:9b4tur$6ah$[EMAIL PROTECTED]...
> I have the same problem, running W2K and IIS5:
> print "<HTML>\n";
> exec('LUII.exe rpc3.ingrammicro.com 058DY12 1', $returnstring,
$returnvar);
> print "Return var: ".$returnvar."<BR>\n";
> print "Printing output ".count($returnstring)." lines:<BR>\n";
> print "<PRE>\n";
> while (list($line, $text) = each($returnstring))
> {
> print "$line $text<BR>\n";
> }
> print "</PRE>\n";
>
> works fine on the commandline. In a browser no value returned at all. Even
> the array stays empty (0).
> Logs are clean. No errors, nothing. I'm allmost desperate.
>
>
> --
Guido Smit
while I dont have IIS this sounds like a permission problem because
you can run it from the command prompt.
However you may want to try full tags if using NS it will not load the page
unless the <html><body></body></html> tags are there.
<?
print "<HTML>\r\n";
print "<HEAD>\r\n";
print "<TITLE> New Document </TITLE>\r\n";
print "</HEAD>\r\n";
print "<BODY>\r\n";
exec('copy c:\\monsys.zip d:\\', $returnstring, $returnvar);
print "Return var: ".$returnvar."<BR>\r\n";
print "Printing output ".count($returnstring)." lines:<BR>\r\n";
print "<PRE>\r\n";
while (list($line, $text) = each($returnstring))
{
print "[$line] $text<BR>\r\n";
}
print "</PRE>\r\n";
print "</BODY>\r\n";
print "</HTML>\r\n";
?>
output...
Return var: 0
Printing output 1 lines:
[0] 1 file(s) copied
Have fun I am
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]