On Mon, Oct 20, 2008 at 4:47 PM, Alice Wei <ajwei@xxxxxxxxxxxxx> wrote: > > > > Hi, > > Has anyone tried to execute an .exe file from PHP? I am > currently stuck in a situation where I cannot execute the script, and > all I am getting is a blank screen. > > This is my code snippet used to execute the file: > > //execute program > $a = @shell_exec("C:\Inetpub\wwwroot\test/test.exe"); > echo $a; > > The > program above is supposed to generate a file, so I can read from it. I > have previously set up a file, and I have no problems with reading the > file. > Can anyone please help me with the possible command to > execute the script? I tried CURL too, but it does not seem to be > working either. > > <http://get.live.com/toolbar/overview> If you run the file from command line (dos prompt), does it output anything? -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."