The ultimate guardian of the PHP care process.

Source: Internet
Author: User
Tags log log
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

Personal opinion: No such need

If the business needs, then use C Write RST program
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.