Call a Windows Forms .NET EXE from PHP -


I have seen stack overflow in many positions but none of them help.

I'm (trying to run the .NET Windows Forms Application) (there is no forms / GUI / dialogs / hence , but due to the nature of the app it is not Should be a Windows form). I tried shell_exec () , exec () , passthru () , but all of them failed (they were infinitely long and PHP

Again, I tried to run a simple C ++ (unmanaged) console application - it worked and returned the correct output and return code.

Then, I thought, maybe I could call this C ++ XE and call it a Windows application (i.e. using C ++, call SYSTEM ("path_to_exe.exe"); ) when I compile it But again,

When PHP calls this console (new code to run a .NET EXE), again PHP infinte takes time and why not? < / P>

Can any way I successfully run my .NET EXE on a server on PHP?

Thanks a lot!

"Can I run my .NET exe successfully on the server from PHP?": Your XI is already running! < / P>

then the problem is in your .NET EXE, not me Let's know what type of EXE it is, but you can use scripting to execute it and then x seconds, here is the snippet of code (do not forget to compile it):

    

Comments