On Fri, June 17, 2005 5:50 am, Davide Pasqualini said:
> I did as You suggested:
>
> $win_cmd = "\"C:\\Hello.exe\"";
> exec($win_cmd, $stdout, $stderr);
> print "Standard output:\n";
> print_r($stdout);
> print "Standard error:\n";
> print_r($stderr);
> ?>
>
> but Hello.Exe, a very simple program,
Davide Pasqualini wrote:
I did as You suggested:
but Hello.Exe, a very simple program, doesn't run and my browser seems
waiting something from the server.
Can I run a program (exe file) in another way ?
Thank in advance for your help.
Davide
PHP will just sit there waiting for Hello.exe t
I did as You suggested:
but Hello.Exe, a very simple program, doesn't run and my browser seems
waiting something from the server.
Can I run a program (exe file) in another way ?
Thank in advance for your help.
Davide
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
Exec is the way to go... it gives you output as well as any error
status. Here's an example script that works for a Win32 program I have
and you should be able to adapt to your own usage:
/** Notice that the command has extra quotes around it for the Windows
command line as well as double-ba
4 matches
Mail list logo