Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of the Development Mode of Wechat official account in php

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly shows you "sample analysis of the development mode of Wechat official account in php", which is easy to understand and well-organized. I hope it can help you solve your doubts. Now let the editor lead you to study and study "sample analysis of the development pattern of Wechat official account in php".

There are two modes of Wechat official account development: the editing mode and the development mode. The editing mode is relatively simple, you don't need to operate any code, you just need to use the functions provided by Wechat to manage your Wechat official account. The page developed in this way is relatively simple and is mainly used to realize the push of the article and other functions. On the other hand, the developer mode can achieve more interaction with Wechat follower users through their own background server, and call more powerful functions such as Wechat payment. Here we mainly talk about the developer model of Wechat official account.

Preparatory work:

1. Your own backend server. I use the Sina Cloud SAE service and upload my code to the server through SVN.

1.1 build server operations on Sina Cloud. Login link: http://www.sinacloud.com/?from=sogou_web

Enter application management

Click to create a new application

Deploy the environment settings as shown in the following figure.

The operating environment chooses the standard environment because the standard environment has a free quota of 5G.

SVN code management is easier than git.

Enter the project after successful creation

Select the code management under the application

Svn repository information will be used later when deployed on personal computers.

Click to create a version

2. Manage the code through svn.

What is svn? After you create an application on sae, there will be a warehouse address to store your code. As shown in the figure, the warehouse address of svn warehouse information in Xinlangyun-5. When you install svn on your PC, you can define a warehouse on your PC through svn, and all the code put into this warehouse can be submitted to the server svn warehouse through "svn submission", so that the server code can be updated synchronously. You can also update the code on the server to the personal computer by "svn update", which is convenient for many people to edit the code on the server.

Svn download address: http://www.sinacloud.com/doc/sae/tutorial/code-deploy.html

After successful installation:

The desktop right-click menu will appear with two options in the following box.

Create a folder anywhere on the computer. Right-click the folder, select SVN check out from the menu, and the following screen appears:

This step is equivalent to setting up a warehouse that wants to connect with the warehouse of the remote server, and the code can be passed through svn between the two repositories.

If you have created a php file in your local warehouse, you want to upload it to the server repository. Select the file and right-click svn to submit.

If you want to pull files from the remote server warehouse to the local server warehouse. Select the folder or go inside the folder and right-click svn Update.

3. Wechat public platform. Log in and enter developer mode.

Find the public platform test account on the page and click enter. Another login page will appear, which can be accessed by scanning it with your Wechat. (the test number of each Wechat public platform is bound to a WeChat account for management.)

The above is all the contents of this article "sample Analysis of the Development Mode of Wechat official account in php". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report