I've been following some tutorials on running and managing php scrips as background process. I've been playing with the script below.
<?php
$count = 0;
while(true){
$count = $count + 1;
file_put_contents('daemon1.log', $count, FILE_APPEND);
sleep(1);
}
?>
When I run this navigating to it's url in a browser window and I then close the window it seems to keep running. Is this typical of php scripts? How do I stop this process once it's running int he background?