Unlock instant, AI-driven research and patent intelligence for your innovation.

PHP code compiling method and device and PHP code running method and device

A code, ready-to-run technology, applied in the computer field, can solve the problems of low PHP code efficiency, waste of processing resources and storage resources, etc., to save processing resources and storage resources, improve operating efficiency, and improve performance.

Active Publication Date: 2014-01-01
新浪技术(中国)有限公司
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] Embodiments of the present invention provide a method and device for compiling PHP codes, which are used to solve the problem of waste of processing resources and storage resources when a Web server with multiple Web applications caches Opcode Arrays corresponding to PHP codes in the prior art
[0011] The embodiment of the present invention also provides a method and device for running PHP codes to solve the problem in the prior art that a Web server with multiple Web applications has low efficiency when running PHP codes

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
  • PHP code compiling method and device and PHP code running method and device
  • PHP code compiling method and device and PHP code running method and device
  • PHP code compiling method and device and PHP code running method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] In order to provide an implementation scheme for saving processing resources and storage resources when a Web server with multiple Web applications caches the Opcode Array corresponding to the PHP code, an embodiment of the present invention provides a PHP code compilation method and device; An implementation scheme for improving operating efficiency when a Web server of a Web application runs PHP codes. Embodiments of the present invention also provide a method and device for running PHP codes. The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that , the preferred embodiments described here are only used to illustrate and explain the present invention, not to limit the present invention. And in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0055] Embodiments of the present invention ...

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 PHP code compiling method and device and a PHP code running method and device. The compiling method includes: acquiring a PHP code to be complied, compiling the PHP code to be complied so as to obtain an opcode array corresponding to the PHP code; caching the opcode array, and allowing web applications in a web server to run the PHP code to be complied. The opcode array contains a directory acquisition code for a code directory of the web application corresponding to the PHP code to be complied when the opcode array is executed by the web application. The scheme provided in the embodiment has the advantages that processing resources and storage resources of the web server are saved and the performance of the web server is improved.

Description

technical field [0001] The invention relates to the field of computers, in particular to a PHP code compiling method, a PHP code running method and a device. Background technique [0002] The hypertext preprocessing language PHP (Hypertext Preprocessor) is a dynamic website scripting programming language that can run on the Internet web server, and usually builds a dynamic website together with an open source web server. [0003] The process of running PHP code in the prior art can be as follows: [0004] The first step is to compile the PHP code into a set of opcodes, which can be called Opcode Array; [0005] The second step is to load and execute the Opcode Array. [0006] The same PHP code, the compiled Opcode Array is also the same, so in order to improve the running efficiency of the PHP code, you can cache the Opcode Array corresponding to the PHP code after the compilation is completed, so that when you need to run the PHP code again, you can directly obtain the ca...

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
IPC IPC(8): G06F9/45
Inventor 陈磊
Owner 新浪技术(中国)有限公司