The ultimate guardian of the php care process.

Source: Internet
Author: User
Php daemon ......... recently, a php daemon that needs to run data distribution on linux is as follows: PHPcode/* receive. php inserts data sent by UDP into the trap table */receive. php/* trap_handle.php (used as the ultimate daemon for the php daemon .........
Recently, a php daemon that needs to run data distribution on linux is as follows:
PHP code
  /* Receive. php inserts data sent by UDP into the trap table */receive. php/* trap_handle.php (used as a daemon) query data from the trap table and perform the following operations: 1. insert the queried data into four tables. each piece of data generates a configuration file (return array() )3.each piece of data should be inserted into a loglog to the log.txt and log Table 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 you use trap_handle as the daemon to run for a long time, there are no advantages or disadvantages. please have your own opinions and have your own experiences with similar things.

------ Solution --------------------
Personal opinion: not necessary

If necessary, use c to write the 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: info-contact@alibabacloud.com 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.