The ultimate guardian of the PHP daemon ...
The PHP daemon that needs to run a distribution data on Linux recently looks like this
PHP Code
/*receive.php receives data sent by the UDP protocol into the trap table */receive.php/*trap_handle.php (used as a daemon) to query data from the trap table to do the following: 1. Insert the queried data loop into four tables 2. Each data generates a configuration file (return array () type) 3. Each data is inserted into a log log into the Log.txt and log tables 4. Delete the data in the trap table */TRAP_ handle.php
nohup/usr/local/bin/php/opt/trap_handle.php 2>&1 >/dev/null &
If the trap_handle as a daemon for a long time to run like this can not have any pros and cons please talk about also please do something similar brother say experience it
------Solution--------------------
Personal opinion: No such need
If the business needs, then use C Write RST program