CN106126650A - A kind of Web page picture based on PHP extension supports system - Google Patents

A kind of Web page picture based on PHP extension supports system Download PDF

Info

Publication number
CN106126650A
CN106126650A CN201610475377.1A CN201610475377A CN106126650A CN 106126650 A CN106126650 A CN 106126650A CN 201610475377 A CN201610475377 A CN 201610475377A CN 106126650 A CN106126650 A CN 106126650A
Authority
CN
China
Prior art keywords
picture
web page
module
task
webpage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610475377.1A
Other languages
Chinese (zh)
Inventor
尹震海
张利平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201610475377.1A priority Critical patent/CN106126650A/en
Publication of CN106126650A publication Critical patent/CN106126650A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of Web page picture and support system, including: core support module: for supported web page development object instantiation;Picture processing module;For being loaded into the picture of core support module instantiation, and carry out picture processing;Views module: for being loaded into the view of core support module instantiation and exporting;Database processing module, for processing the data cube computation between webpage and background data base.System supported by the net also picture based on PHP extension that the present invention provides, and encapsulates picture operation, optimizes webpage performance for many pictures webpage.Simultaneously presented in extending by PHP, saving the performance cost that framework loading itself brings, the speed of service is faster;Encapsulate common operation, bring facility for exploitation, save the development time, improve development efficiency;Highly versatile, it is simple to extension.

Description

A kind of Web page picture based on PHP extension supports system
Technical field
The invention belongs to field of computer technology, more particularly, to a kind of Web page picture support system based on PHP extension System.
Background technology
PHP is a kind of general script of increasing income.It is beneficial to study, uses extensively, be primarily adapted for use in Web development field.PHP Extension is can to enter the program module in PHP core with dynamic load.It is adopted and shows a C language, and compiling is installed, operational efficiency ratio PHP script itself to be got well.
At present in webpage development, many times using picture presentation, existing webpage development mainly just uses markup language pipe Reason picture, and the copy of picture, scale, intercept, the function such as watermark generation, need the picture processing formula using specialty to process. For the webpage that picture is more, development cost is higher, and complexity is safeguarded in management.
Summary of the invention
For disadvantages described above or the Improvement requirement of prior art, the invention provides a kind of webpage figure based on PHP extension Sheet supports system, its object is to, by by integrated to basic function and the Web page picture editting function of webpage development, extend with PHP Form be packaged into Web page picture support system, be applied to webpage development, thus solve existing web development technologies to picture Support poor, the technical problem that development cost is higher.
For achieving the above object, according to one aspect of the present invention, it is provided that a kind of Web page picture supports system, including:
Core support module: for supported web page development object instantiation;
Picture processing module;For being loaded into the picture of core support module instantiation, and carry out picture processing;
Views module: for being loaded into the view of core support module instantiation and exporting;
Database processing module, for processing the data cube computation between webpage and background data base.
Preferably, described Web page picture support system, its described core support module, specifically for:
When program initialization, to system application internal memory, instantiation container class, and program will may use arrive right As, it is registered in container.
Preferably, described Web page picture supports system, and its described picture processing module includes:
It is loaded into submodule, encapsulates the loading function of plurality of picture type, be used for supporting different types of picture bottom;
Editor's submodule, for the picture being loaded into is zoomed in and out, intercepts, watermark, filter and the editor behaviour of toning Make;
Picture sub module stored, one or more copies output appointment position of the picture for being loaded onto preserves, including Output is to the container of core support module instantiation.
Preferably, described Web page picture supports system, and its described views module is used for being loaded into core support module instantiation Webpage development view.
Preferably, described Web page picture support system, its described views module specifically for: provide visual webpage to compile Collect device, and view content is converted into webpage format output.
Preferably, described Web page picture supports system, and its described webpage format that is converted into by view content exports, including straight Connect output, output web page files, redirection, JSON and template to render.
Preferably, described Web page picture support system, its described database processing module, specifically for: set up webpage with The connection of data base, by the method for database connection object, carries out database manipulation.
Preferably, described Web page picture supports system, and its described system also includes:
Task processing module, is used for building task queue, and being produced by web page operation of task is added to task queue, Order according to queue first in first out performs;
Class file load-on module, for the standard according to PSR, adds the mapping of class name to path, NameSpace to catalogue Carry;
Log pattern, for according to standard about daily record in PSR, when program needs, calls log object, record day Will is also saved in the position specified;
Memory module, for storing appointment position by file.
Preferably, described Web page picture support system, its described task processing module, including:
Task generates submodule, adds to task queue for being produced by web page operation of task, and the task that is not to wait for processes Complete, continue interpolation task;
Tasks carrying submodule, is used for setting up running background program, obtains the personage in task queue, performs, row When table is empty, dormancy waits new task.
In general, by the contemplated above technical scheme of the present invention compared with prior art, it is possible to show under acquirement Benefit effect:
System supported by the net also picture based on PHP extension that the present invention provides, and encapsulates picture operation, for many picture networks Page optimizes webpage performance.Simultaneously presented in extending by PHP, save the performance cost that framework loading itself brings, The speed of service is faster;Encapsulate common operation, bring facility for exploitation, save the development time, improve development efficiency;Logical Strong by property, it is simple to extension.
Accompanying drawing explanation
Fig. 1 is that the Web page picture based on PHP extension that the present invention provides supports system structure schematic diagram.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, right The present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, and It is not used in the restriction present invention.If additionally, technical characteristic involved in each embodiment of invention described below The conflict of not constituting each other just can be mutually combined.
For avoiding repeatedly request of loading frame clsss file, and the too much IO expense formed, the Web page picture that the present invention provides Support system, it is preferred to use the PHP extension that C language is write realizes.Described Web page picture supports system, as it is shown in figure 1, specifically wrap Include:
Core support module: for supported web page development object instantiation, specifically, when program initialization, to being System application internal memory, instantiation container class, and by program may use the object arrived, be registered in container.Core support module Encapsulate instantiation common mathematical function, such as random string, array reading etc..Realize relying on and inject, the example chemical industry of takeover objective Make, facilitate application program registration service object.Such as, when instantiation web page contents, reading and saving series in data base Picture, and store in array of data, carry out instantiation, in case subsequent development.
Picture processing module: for being loaded into the figure of core support module instantiation, and carry out picture processing.At described picture Reason module, including: it is loaded into submodule, encapsulates the loading function of plurality of picture type, be used for supporting at the bottom of different types of picture Layer;Editor's submodule, for the picture being loaded into is zoomed in and out, intercepts, watermark, filter, the edit operation such as toning;Picture stores Submodule, one or more copies output of the picture for being loaded onto is specified position to preserve, is supported mould including output to core The container of block instantiation.
Views module: for being loaded into the view of core support module instantiation and exporting, especially webpage development view.Institute State views module, it is provided that visual Web page editor, and view content is converted into webpage format output.Specifically, described View content is converted into webpage format output, including directly exporting, export web page files, redirection, JSON and template wash with watercolours Dye.
Database processing module, for processing the data cube computation between webpage and background data base, specifically, initially sets up Webpage and the connection of data base, by the method for database connection object, carry out database manipulation, such as inquiry, amendment etc..Described Database processing module, supports relevant database, such as MySQL, PostgreSQL, Oracle etc., supports direct relation data Storehouse operates, as single table handling, inquiry operation, Query Result record process operation, data filtering operation.Specifically, single table handling As increased, delete, revise, inquire about, being polymerized.
Preferably, described Web page picture supports that system also includes:
Task processing module, is used for building task queue, and being produced by web page operation of task is added to task queue, Order according to queue first in first out performs.Described task processing module, generates submodule and tasks carrying submodule including task Block: described task generates submodule and adds to task queue for being produced by web page operation of task, it is not necessary to wait that task processes Complete, continue interpolation task;Described tasks carrying submodule, is used for setting up running background program, obtains the people in task queue Thing, performs, and when list is empty, dormancy waits new task.
Class file load-on module, for the standard according to PSR, adds the mapping of class name to path, NameSpace to catalogue Carry.
Log pattern, for according to standard about daily record in PSR, when program needs, calls log object, record day Will is also saved in the position specified.
Memory module, for file stores appointment position, described appointment position is local file system, network Ftp address or FastDFS etc..
As it will be easily appreciated by one skilled in the art that and the foregoing is only presently preferred embodiments of the present invention, not in order to Limit the present invention, all any amendment, equivalent and improvement etc. made within the spirit and principles in the present invention, all should comprise Within protection scope of the present invention.

Claims (9)

1. a Web page picture supports system, it is characterised in that including:
Core support module: for supported web page development object instantiation;
Picture processing module;For being loaded into the picture of core support module instantiation, and carry out picture processing;
Views module: for being loaded into the view of core support module instantiation and exporting;
Database processing module, for processing the data cube computation between webpage and background data base.
2. Web page picture as claimed in claim 1 supports system, it is characterised in that described core support module, specifically for:
When program initialization, to system application internal memory, instantiation container class, and program will may use the object arrived, note Volume is in container.
3. Web page picture as claimed in claim 2 supports system, it is characterised in that described picture processing module includes:
It is loaded into submodule, encapsulates the loading function of plurality of picture type, be used for supporting different types of picture bottom;
Editor's submodule, for the picture being loaded into is zoomed in and out, intercepts, watermark, filter and the edit operation of toning;
Picture sub module stored, one or more copies output of the picture for being loaded onto specifies position to preserve, including output Container to core support module instantiation.
4. Web page picture as claimed in claim 1 supports system, it is characterised in that described views module is used for being loaded into core and props up Hold the webpage development view of module instance.
5. Web page picture as claimed in claim 4 supports system, it is characterised in that described views module specifically for: provide Visual Web page editor, and view content is converted into webpage format output.
6. Web page picture as claimed in claim 5 supports system, it is characterised in that described view content is converted into webpage lattice Formula exports, and renders including directly exporting, export web page files, redirection, JSON and template.
7. Web page picture as claimed in claim 1 supports system, it is characterised in that described database processing module, specifically uses In: set up the connection of webpage and data base, by the method for database connection object, carry out database manipulation.
8. Web page picture as claimed in claim 1 supports system, it is characterised in that described system also includes:
Task processing module, is used for building task queue, and being produced by web page operation of task is added to task queue, according to The order of queue first in first out performs;
Class file load-on module, for the standard according to PSR, loads the mapping of class name to path, NameSpace to catalogue;
Log pattern, for according to standard about daily record in PSR, when program needs, calling log object, log is also It is saved in the position specified;
Memory module, for storing appointment position by file.
9. Web page picture as claimed in claim 8 supports system, it is characterised in that described task processing module, including:
Task generates submodule, adds to task queue for being produced by web page operation of task, and the task of being not to wait for has processed, Continue interpolation task;
Tasks carrying submodule, is used for setting up running background program, obtains the personage in task queue, performs, and list is Time empty, dormancy waits new task.
CN201610475377.1A 2016-06-24 2016-06-24 A kind of Web page picture based on PHP extension supports system Pending CN106126650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610475377.1A CN106126650A (en) 2016-06-24 2016-06-24 A kind of Web page picture based on PHP extension supports system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610475377.1A CN106126650A (en) 2016-06-24 2016-06-24 A kind of Web page picture based on PHP extension supports system

Publications (1)

Publication Number Publication Date
CN106126650A true CN106126650A (en) 2016-11-16

Family

ID=57266259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610475377.1A Pending CN106126650A (en) 2016-06-24 2016-06-24 A kind of Web page picture based on PHP extension supports system

Country Status (1)

Country Link
CN (1) CN106126650A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598679A (en) * 2016-12-21 2017-04-26 北京奇虎科技有限公司 Method and device for loading picture resources
CN106598614A (en) * 2016-12-21 2017-04-26 北京奇虎科技有限公司 Picture resource recycling method and apparatus
CN107957894A (en) * 2017-11-24 2018-04-24 广州市千钧网络科技有限公司 A kind of method and device of image loading

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963987A (en) * 2010-09-30 2011-02-02 百度在线网络技术(北京)有限公司 Methods and equipments for generating and loading web page file
CN102929912A (en) * 2012-09-10 2013-02-13 新浪网技术(中国)有限公司 Method and system for generating microblog pictures
CN103761079A (en) * 2013-12-12 2014-04-30 北京奇虎科技有限公司 Method and device for automatically graying page
CN104156251A (en) * 2014-08-22 2014-11-19 广州华多网络科技有限公司 Picture processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963987A (en) * 2010-09-30 2011-02-02 百度在线网络技术(北京)有限公司 Methods and equipments for generating and loading web page file
CN102929912A (en) * 2012-09-10 2013-02-13 新浪网技术(中国)有限公司 Method and system for generating microblog pictures
CN103761079A (en) * 2013-12-12 2014-04-30 北京奇虎科技有限公司 Method and device for automatically graying page
CN104156251A (en) * 2014-08-22 2014-11-19 广州华多网络科技有限公司 Picture processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
阎宏艳: "基于PHP 技术的网页自动生成工具", 《电脑编程技巧与维护》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598679A (en) * 2016-12-21 2017-04-26 北京奇虎科技有限公司 Method and device for loading picture resources
CN106598614A (en) * 2016-12-21 2017-04-26 北京奇虎科技有限公司 Picture resource recycling method and apparatus
CN106598679B (en) * 2016-12-21 2020-07-31 北京奇虎科技有限公司 Method and device for loading picture resources
CN106598614B (en) * 2016-12-21 2020-12-25 北京奇虎科技有限公司 Method and device for recycling picture resources
CN107957894A (en) * 2017-11-24 2018-04-24 广州市千钧网络科技有限公司 A kind of method and device of image loading

Similar Documents

Publication Publication Date Title
Qin et al. A strategy for raster-based geocomputation under different parallel computing platforms
US10672163B2 (en) Layout algorithm for entity relation model diagram
CN102999537A (en) System and method for data migration
CN103605764B (en) A kind of network crawler system and web crawlers multitask execution and dispatching method
CN105045607A (en) Method for achieving uniform interface of multiple big data calculation frames
CN104866327B (en) A kind of PHP development approaches and framework
CN106126650A (en) A kind of Web page picture based on PHP extension supports system
CN107807945A (en) Device, method and the data handling system of data are provided
WO2019047441A1 (en) Communication optimization method and system
CN102819547A (en) Method and device for configuring field attribute
CN102638566A (en) BLOG system running method based on cloud storage
CN107168695B (en) Excel data analysis method and system
CN106528898A (en) Method and device for converting data of non-relational database into relational database
CN103561083B (en) Data processing method for Internet of things
Kim et al. A study on utilization of spatial information in heterogeneous system based on apache nifi
CN104731606A (en) System and method based on identification grasping technology to achieve enterprise application integration management
CN113094039B (en) Automatic code generation system based on database table
CN104021024A (en) Loading method and system of tabletop system function screen
CN112435022B (en) Dynamic retrieval system and method based on user real-time data
CN108959439A (en) A kind of data template generation method and system
Zhang et al. Research and implementation of cross-platform development of mobile widget
CN109857374A (en) The development approach and device of mobile application
CN107784488A (en) A kind of business process management system of loose couplings
Ramis Ferrer et al. Towards the encapsulation and decentralisation of OKD-MES services within embedded devices
CN105786472B (en) One kind being based on ECP platform retrieval function setting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161116

RJ01 Rejection of invention patent application after publication