Home > Backend Development > PHP Tutorial > WeChat public platform official example access verification token failed solution token WeChat public account token verification public platform toke

WeChat public platform official example access verification token failed solution token WeChat public account token verification public platform toke

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-29 08:48:44
Original
1571 people have browsed it

Problem description:

Using the official demo provided by WeChat to verify the token is successful, but putting it on the framework of your own website for token verification always prompts "token verification failed".

Solution:

Finally echo $_GET[' Add a line of code ob_clean(); before echostr']; to solve the problem.

Problem analysis:

Because a framework is used, there may be some output that you don't know before echo $_GET['echostr']; Output buffer", this will affect WeChat's ability to obtain the content of your echo.

The above introduces the solution to the unsuccessful access verification token of the WeChat public platform official example, including the WeChat public platform and token content. I hope it will be helpful to friends who are interested in PHP tutorials.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template