note 29616 deleted from ref.exec by tomsommer
| From: | tomsommer@php.net | Date: | Sun, 31 Oct 2004 13:00:16 +0000 |
| Subject: | note 29616 deleted from ref.exec by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79398@lists.php.net to get a copy of this message | ||
Note Submitter: goran_johansson at yahoo dot com
----
I thought I contribute with how I got background running to work on Windows 2K.
I used the bgrun-exe (www.jukkis.net/bgrun/bgrun.exe) to get this working. I just put this file in
my php directory (d:\php)
This is my start.php file:
Hopefully started with BGRUN
<?
// WORKS!!!
$tmp=exec("d:\php\bgrun d:\php\cli\php -q d:\www\myphpapp.php >nul",$res);
?>
When run from a webbrowser it shows the text above and runs myphpapp.php in the background.