Exec () fonksiyonu ve zaman hakkında

0 Cevap php

Önce, bazı kod göstereceğim:

echo exec("compile\\save.exe Untitled.c tmpUntitled.c");

I have a program, named save.exe and i want to know if it already stopped?
If stopped, ok... Do something...

If not, may be an error, or a loop...
Now: I want to build same way to control the time that program use, and put a limit (time limit exceed, something like this...)

Herhangi biri bir sugestion var?




Edit[1]:save.exe is a program wrote on C language, and use two parameters: source and destiny.
popen just don't execute save.exe, i say this because it don't gerenate anymore the destiny (with execit happens);

0 Cevap