: 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 saeThe 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.