Q:

Prevent a looping script from stopping when aborting the page? 

I've built a looping script that i want to keep it running in the background. 
The issue is that when i run it via the browser, it works fine but once i stop loading the page, the script stops/exists, i know that's pretty normal and makes sense, but how can i run a specific PHP script endlessly in the background? 
It would be great if there is function in php that runs an other script but it goes on instead of waiting for it. 

A:

You are probably looking for:

shell_exec(..)
exec(..)
escapeshellcmd(../=)

