Home > Backend Development > PHP Tutorial > xml-微信开发遇到如下问题,怎麽办?PHP开发的。

xml-微信开发遇到如下问题,怎麽办?PHP开发的。

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-02 11:27:48
Original
1180 people have browsed it

xmlphp微信

warning: simplexml_load_string() expects parameter 2 to be a class name derived from SimpleXMLElement, 'SimplexXMLElement' given in textMsg.php on line 28

微信token验证成功,部分代码如下
$postStr=$GLOBALS["HTTP_RAW_POST_DATA"];//获取POST数据的一种方式

<code>//$postObj=simplexml_load_string($postStr,'SimplexXMLElement',LIBXML_NOCDATA);$postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);//把 XML 字符串载入对象中,解析xml$fromUsername=$postObj->FromUserName;$toUsername=$postObj->ToUserName;$keyword=trim($postObj->Content);$magType->$postObj->MsgId;$CreateTime=intval($postObj->CreateTime);</code>
Copy after login
Related labels:
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