How to output PHP results to a non-PHP page_PHP tutorial

WBOY
Release: 2016-07-20 11:04:34
Original
972 people have browsed it

The problem is that after I implement statistical counting myself, I want to use its output in my page that does not support PHP functions. So how should I do it? The main solution is to output a javascript script. This is very useful, such as implementing dynamic news and advertising polling. Of course, here is how to output the download count of a certain program to a non-PHP page.

Let’s imagine this: I already have a program that downloads a count file on my website, such as ../count/download.db.

The file format is:
Index|File name hint|Link|Count
Note that they are separated by "|" lines here. I use text files for processing. There may be a line of data in it:
file1|test file 1|../download/file1.zip|10
As you can see, the number of downloads may have been 10 times. Now I want to output this 10 times to other pages.

Step 1: Write Javascript
Very simple:

Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template