Re: [PHP] Re: Using Exec Function

2005-06-18 Thread Richard Lynch
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,

[PHP] Re: Using Exec Function

2005-06-17 Thread Jason Barnett
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

[PHP] Re: Using Exec Function

2005-06-17 Thread Davide Pasqualini
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

[PHP] Re: Using Exec Function

2005-06-16 Thread Jason Barnett
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