This article mainly introduces the php public account developer mode, which enables more interaction between backend servers and paying attention to users, and has some reference value, if you are interested, you can refer to the learning procedure: This part is described in four chapters. The following is the general content of each chapter.
1. understand the development and editing modes and make preparations before development.
2. how do users, servers, and personal servers interact with each other in the development mode. What is an interface.
3. call and implement various interface functions.
4. call js-SDK
There are two modes for public account development: editing mode and development mode. The editing mode is relatively simple. you do not need to operate any code. you only need to use the provided functions to manage your own public accounts. Pages developed in this way are relatively simple and mainly used to push articles and other functions. In the developer mode, you can use your own backend servers to achieve more interaction with users, call payment, and other more powerful functions. Here we will mainly explain the developer mode of the public account.
Preparations:
1. your own backend server. I use the Sina Cloud SAE service and upload my code to the server through SVN.
1.1 create server operations on Sina Cloud. Login link: http://www.sinacloud.com /? From = sogou_web
Go to Application Management
Click Create New Application
Set the deployment environment according.
The standard environment is selected for the running environment because the standard environment has 5 GB free quota.
SVN code management is easier than git.
Enter the project after the project is created successfully.
Select code management under the application
Svn repository information will be used for subsequent deployment on personal computers.
Click Create version
2. use svn to manage code.
What is svn? After you create an application on sae, you will have a repository address to store your code. Repository address of svn repository information in Sina Cloud-5. After installing svn on your PC, you can use svn to define a repository on your PC. the code for storing the repository is, you can submit the code to the svn repository on the server by submitting the svn repository. This allows you to synchronously update the server code. You can also "svn update" to update the code on the server to your PC, so that many people can edit the code on the server.
Svn: http://www.sinacloud.com/doc/sae/tutorial/code-deploy.html
After successful installation:
The right-click menu on the desktop displays two options, as shown in the box.
Create a folder anywhere on your computer. Right-click the folder and select SVN check-out from the menu. the page is displayed:
This operation is equivalent to creating a repository and connecting it to the repository of the remote server. the code can be passed through the same svn mode between the two repositories.
If you have created a php file in the local repository, you want to upload it to the server repository. Right-click the file and select svn submit.
If you want to pull files from the remote server repository to the local server repository. Select the folder or enter the folder, right-click it, and select svn Update.
3. log on to the public platform and enter the developer mode.
Find the public platform test account on the page and click to enter. Another logon page appears. you can use your scan to enter the page. (Each public platform's Test number is bound with a number for management ).
The above is all the content of this article. I hope it will be helpful to everyone's learning, and I hope you can support your own home.