PHP exec() call and nohup

I am using the exec function to open a program through PHP. However, I need this program to close before PHP will move on. I looked around, and believe there is a taskkill function? But I could never reach it because PHP wouldn’t move on. I’ve seen some things about ‘nohup’, that it may be able to move on and use the PHP statement that would end the program, but I don’t understand it.

Can anyone tell me what all the symbols and variables within a ‘nohup exec’ function mean? Or explain what ‘nohup’ does? Or is there any other solution to close the program I am opening?

The only code I have is
[php]exec($cmd);[/php]
Where $cmd is the file path to the program I want to open.

I would still need a way to close this program, or somehow move on after opening it at least. Any suggestions?

Sponsor our Newsletter | Privacy Policy | Terms of Service