ioman
Posts: 4
|
| Posted: 11/20/2007, 2:28 PM |
|
I have some custom code that creates a db entry. After that happens, I need to fork to an external command that will sleep for a few minutes then execute some stuff.
I've tried a simple:
exec("/usr/bin/php /path/to/script &");
within my custom code but it does not return the user web session until the external script has finished. Anyone know if there's a different way I should be doing this?
Thanks in advance
Eric
|
 |
 |
ioman
Posts: 4
|
| Posted: 11/20/2007, 2:39 PM |
|
D'oh! I forgot to discard output. It totally works. My bad.
exec("/usr/bin/php /path/to/script > /dev/null &");
Thanks.
|
 |
 |
|