Write your own independent background process using PHP

Sometimes we want a PHP script to run all day and all night as a background process, not directly under control of the user, but as a system like daemon. This is surprisingly easy thing to do with a PHP Script.

I have written a simple example how to do this using PHP. It should get you up to speed quickly, and could be used as a framework to write your own more sophisticated background processes.

You can find it here https://evadinggrid.wordpress.com/php-cli-command-line-scriting/how-to-with-php-write-a-background-daemon-server-process/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s