Php website template link static processing method

A static processing, website template technology, applied in the direction of digital data processing, special data processing applications, instruments, etc., can solve problems such as the inability to transplant website systems, and achieve the effect of facilitating promotion and easy grabbing

Active Publication Date: 2018-07-06
CHINARS GEOINFORMATICS GUANG DONG +2
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, many php open source frameworks only do static processing of template links for their own systems, and cannot be transplanted to other website systems that do not have static processing functions

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 website template link static processing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0023] Please refer to figure 1 , the php website template link static processing method described in the present invention, comprises the following steps:

[0024] Write static processing files and pseudo-static redirection files. Static processing files are formed by integrating processing functions and logic services into one php file, and include functions to obtain original page content and regular replacement link functions. Add specific parameters to the URL parameters of the function; the function to obtain the original page content is the file_get_contents() function in the php function library. The regular replacement link function is a replacement regular expression written according to the rules of page links, and then replaced with the replacement function of PHP. The pseudo-static redirection file is an .htaccess file, and the pseudo-static redirection file is written according to the regular replacement link function.

[0025] Put the static processing file an...

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 website template link static processing method. The method comprises the steps that a browser accesses a php website; a pseudo-static redirection file of a php website system redirects a URL to a php website system entrance file; the php website system judges whether URL parameters of a function acquiring original page content in a static processing file include a specific parameter; and if the specific parameter is not included, when the php website system runs to the function acquiring the original page content, the function acquiring the original page content acquires the original page content, the php website system acquires a complete link of an original page, then a regular replacement link function performs replacement on the original page content acquired by the function acquiring the original page content, and a link to a page subjected to static processing is obtained. Through the method, page link pseudo-static processing can be quickly realized, and the method is compatible with various php websites.

Description

technical field [0001] The invention relates to the technical field of link static processing, in particular to a static processing method for PHP website template links. Background technique [0002] Search engines are a very large tool for Internet users to obtain information. The website pages included in the search engine are crawled by Baidu crawlers, and the objects to be crawled are the static links in the page. When the website page link does not meet the crawling rules, the website will not be included, which will be a big obstacle in the marketing and promotion of the website. [0003] At present, in addition to relatively large websites in China, many other small and medium-sized website pages are still presented with dynamic links. This has a lot to do with the variety of open source frameworks and the technical level of programmers. Especially the PHP language development website, all pursue fast and ignore the later use. This not only brings promotion troub...

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): G06F17/30
CPCG06F16/9558G06F16/9566
Inventor 王晋年郑杰萧畅成黄井优
Owner CHINARS GEOINFORMATICS GUANG DONG
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