[Program] [PHP] online notepad 2

Source: Internet
Author: User

I wrote the query function in my spare time (list is provided, partial content is displayed, and keywords are colored)

Provides two Query Interfaces: the query database interface and the text query interface.

Queries the database interface. This operation performs the like operation on related fields in the database and selects relevant records for display. for a large number of queries, the system response will certainly be slowed down,

Generally, you can add and back up a MySQL instance to query such database interfaces, which is staggered with other daily operations.

The text query interface is mainly used to query uploaded documents. Currently, only file names and TXT file content are supported. You can abstract this method when you are available to provide different file types.

Content Query.

Later, you can use data structures such as JSON for rpc. You can use C ++ To Write File Content for search, and then use JSON for packaging and sending. After receiving the code, PHP parses the JSON package for display. In this way, the speed should be faster than simply using PHP to search for file content.

Related Article

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.