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.