Pure PHP (personal home page) web framework based on IO (input output) multiplexing

A multiplexing and framework technology, applied in the web field, can solve the problem of high cost and achieve the effect of low maintenance cost, reduced maintenance cost and high performance

Inactive Publication Date: 2018-08-21
JIQI CHENGDU TECH CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this type of framework has the same problems as the second type of framework. It needs to be proficient in PHP extension and C language, and because it is an asynchronous process, the cost is higher

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Pure PHP (personal home page) web framework based on IO (input output) multiplexing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0022] see figure 1 , the present invention provides a technical solution: a pure PHP web framework based on IO multiplexing, comprising the following steps:

[0023] A. The main process reads the configuration file and listens to the port;

[0024] B. The main process creates the corresponding number of sub-processes according to the configuration;

[0025] C. In the child process, use the extension of php to monitor the socket asynchronously, the monitored...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a pure PHP (personal home page) web framework based on IO (input output) multiplexing. The framework includes the steps: A reading a configuration file by a host process and monitoring a port; B creating the number of corresponding sub-processes according to configuration by the host process; C asynchronously monitoring a socket by PHP extension in the sub-processes; D calling an accept function and returning a connection by the accept function by the if the socket is readable in a callback function; E monitoring the connection; F monitoring the sub-processes by the host process after the sub-processes are created, and creating sub-processes again when the sub-processes exit due to abnormity or receive reset signals; G transmitting exit signals to the sub-processesby the host process when a program receives the exit signals, and enabling the host process to exit after all the sub-processes exit. Compared with a first framework in the same field, the pure PHP web framework has higher performances. Compared with a second framework, the pure PHP web framework has higher performances and can further reduce requirements on research and development personnel andreduce maintenance cost. Compared with a third framework, the pure PHP web framework has lower maintenance cost.

Description

technical field [0001] The invention relates to the field of web technology, in particular to a pure PHP web framework based on IO multiplexing. Background technique [0002] The existing PHP WEB frameworks in the same field can be roughly divided into three categories: [0003] The first category is the MVC framework represented by Laravel, Symfony, Zend, etc. After a long period of development and community contributions, this type of framework has become more and more mature. The weight is getting heavier, and the final problem is low execution efficiency. [0004] The second category is a framework represented by Yaf, which is implemented based on PHP extensions. The advantage of this type of framework is that it is simple enough and has high execution efficiency. However, when this type of framework needs to be extended or debugged at the framework level, it needs to be proficient in the development of php extensions, C language, etc., and the maintenance cost is rel...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30
CPCG06F8/31
Inventor 何吕
Owner JIQI CHENGDU TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products