Life is like a train that never stops, no one knows when or where to stop. There are always those beautiful, worth remembering forever. There are always those hopes, worthy of your no regrets to pay, chase. At the end of last year with the daughter of the train will be Hubei home, she on the train, three-year-old appearance, lively, naughty, lovely look, never stop there, there will not be the same. Cherish this memory forever.
Now the app is so hot, as a phper, should know how to write the interface of the app, below to do a tutorial.
Index:
1th Chapter Introduction to the App interface
-
2nd Chapter Encapsulation Communication interface method
2-1 JSON-Encapsulated Communication Interface (14:39)
2-2 PHP generates XML data (12:02)
2-3 XML-Encapsulated Communication interface (17:50)
2-4 method of encapsulating communication data in a comprehensive manner (11:15)
-
The 3rd Chapter core Technology
3-1 static cache (17:16)
3-2 Memcache and Redis Cache technology (24:07)
3-3 Scheduled Tasks (16:46)
-
The 4th chapter of the App interface example
4-1 single-instance mode connection database (18:29)
4-2 The first page of the app Interface Development One (UP) (15:49)
4-3 first Page App interface development (next) (11:03)
4-4 Read cache mode Development Home interface (19:21)
4-5 Timing Read Cache mode development Home interface (16:32)
Recent studies
4-6 version upgrade analysis and data table design (08:15)
4-7 version Upgrade interface development and demo (top) (19:26)
4-8 version Upgrade interface development and demo (next) (09:29)
4-9 App error log interface (13:22)
Chapter One introduction to the App interface
What is an app interface? An app interface is a script that is written in a server-side program, such as PHP, to get data from an app client request. For example, a video app's homepage, there must be some video list, then when you open the app, this package in the app's homepage will actually go to request a remote PHP file such as: http://www.example.com/index.php To get the video list data that needs to be displayed on the home page. The previous engineer gets the data and displays it according to the specific design.
This is what the interface is intended to accomplish. Within an app, it's often necessary to access multiple PHP interfaces to get different data. The following is a detailed talk about the process of interface implementation and some of the core technologies required to implement the interface.
2nd Chapter Encapsulation Communication interface method
First let's review the PHP interface knowledge, see the following code:
How to write the app interface in PHP [original]