048. How to launch external app in winxp without the flashing of cmd window?

Problem

From within a php-gtk application, one can launch an external application, for example a browser, by using system, exec or popen.

When deploying php-gtk applications, we usually run php-gtk scripts using php-win.exe so that there's no visible cmd window. However, the problem is that when we launch an external application using the method mentioned above, one will always see a brief flashing of a cmd window before the external application launches. Though this cmd window goes away by itself, many people find this irritating.

So is there a way to stop this cmd window from appearing?


Solution

This solution makes use of the technique as presented by Elizabeth Smith and Andr

Add comment


Security code
Refresh