Hi,
I have written a bunch of php code, and are now trying to move some of the most cpu intensive code to an external program. This should be possible by using exec.
My code line is:
"exec("php-ex02.exe");"
The program is being executed, but...
1) It pops up in a little ms-dos window at the middle of the screen (I'm running on windows 98 platform). I would like it to run as a hidden background process. Is that possible?
2) The browser (or apache?) hangs after the execution - so nothing of the php code after the code line above is executed - or anything from the external program is returned. How should I avoid this?
...and in general: What do you think about the idea of moving cpu intensive code from php and to an external program compiled specially for the cpu (pascal, c, c++)?
Is there anyone out there who can help me?