Executing Exe File in PHP on Windows XP Servers

A

Alice Wei

Hi,

I am wondering if anyone on this list could help me with the following
error. I have a snippet of code that calls an exe file before it starts
processing anything else from the php file.

The code is called as follows:

//execute program
shell_exec("C:\Inetpub\wwwroot\incidence\my-manager.exe -d$date -p$event");


The entire program works most of the time without my further edits, but
sometimes I cannot get the entire program to finish execution because I
see a Visual Studio error pop up window asking if I would like to bug
due to the code snippet above.

Since I execute PHP files with other applications, such an error from
Visual Studio pop up window prohibits me from running the applications.
I don't think this is something normal, which I welcome anyone to offer
me some suggestions on how to get away with this kind of error.

Thanks in advance.

Alice
 
A

Alice Wei

Hi,

I have been looking around for documents on http://www.microsoft.com on
the generation of win32 exception errors, but I am not exactly sure what
steps I should
take when the debugger is triggered by either a Shockwave file application,
or from an HTTP Request. When I only run the application using cmd, it does
not give me any errors.

Is there something I should try that I have not?

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top