Discussion on the static of CMS system, how to deal with it

Source: Internet
Author: User
Tags apache log
Discussion on the static of CMS system
DEDECMS uses the background static mode, JS to do the PHP statistics news click, so browse the news directly to the Web server, do not have to execute PHP
I am now doing is mobile app, back to the mobile side is the JSON data, how to count it

If you use a Web server and PHP in a way, statistics are possible, complete static can not be achieved, at least through PHP to read the HTML file, and then return the content to the mobile side.

Look at the experience of the people to teach one or two
------Solution--------------------
Can be counted when returning data to the mobile side.
For example, mobile Access www.domain.com/api/news.php?id=12
When you return to JSON, you can first set the number of accesses in server +1
------Solution--------------------
References:
Quote: References:

Can be counted when returning data to the mobile side.
For example, mobile Access www.domain.com/api/news.php?id=12
When you return to JSON, you can first set the number of accesses in server +1

In this way, it is still necessary to call PHP and execute the script
Questions are as follows:
Mobile application, I would like to use the Web server parsing HTML files, but not like the web as JS to do statistics, how to deal with this statistic?

Apache log can be analyzed to statistics, but this does not immediately update the database.
------Solution--------------------

count.php PHP for Wrapping statistics
------Solution--------------------
I don't know, either.
  • 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.