Hi,
I'm trying to get a php script to execute a program on the server, which it does fine with exec or system, but it always waits for the program to return (i.e. exit) before it executes the rest of the php script. Is there a way to execute a program and then just continue? I really don't care what the program output is.
Thanks in advance for even reading this post!
== David
Execute a program from PHP and continue
Moderator: General Moderators
-
programmingjeff
- Forum Commoner
- Posts: 26
- Joined: Fri Jan 05, 2007 10:56 am
Execute the program in the background.
Code: Select all
exec("application_name > /dev/null 2>&1 &");