WeChat public platform developed based on SAE and lanewechat open-source PHP WeChat framework (I) successfully enabled server configuration

Source: Internet
Author: User
Tags autoloader
: This article mainly introduces how to develop a public platform based on SAE and lanewechat open-source PHP Framework (I) to successfully enable server configuration. if you are interested in PHP tutorials, refer to it. I use a personal subscription number that I have not authenticated.

Prepare SAE and LaneWeChat code (clone one copy on github ).

1. create a PHP empty application in SAEs. the code management mode is SVN.

Although you do not want to use SVN, SAE only allows you to upload code packages in this way. (if you use git for multiple times, you can use SVN to upload the code package for a second)

2. configure the lanewechat file

Config. php file in the root directory

 3. Enable wechat. php verification for the first time
  Run (); // you need to open the following line (29 rows) and comment out the preceding line (26 rows) for the first time ). This line is used to verify URL $ wechat-> checkSignature ();
4. package the project file and upload it to sae

The packaging format must meet the requirements of sae. in particular, you must directly enter the project folder to select all files and folders for packaging and compression, so that some files are not a directory after decompression.

Upload the package to sae

5. click submit for verification.

If an exception occurs, search for the error and check the process until the operation is successful.

6. comment out the test code and perform end-to-end verification.

Wechat. php

  Run (); // you need to open the following line (29 rows) and comment out the preceding line (26 rows) for the first time ). This line is used to verify the URL // $ wechat-> checkSignature ();
Then send a message to the public account. if the message can be automatically replied, it will be successful.

The above describes how to develop a public platform based on SAE and lanewechat open-source PHP Framework (1) successfully enable server configuration, including some content, and hope to help friends who are interested in PHP tutorials.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.