Do you have nothing to write? Php load message template include_once (model. php); get data $ postStr $ GLOBALS [HTTP_RAW_POST_DATA]; if (! Empty ($ postStr) {parse data $ postObjsimplexml_load_string ($ postStr, SimpleXMLElement, LIBXML_NOCDATA); $ fromUsername
Do you have nothing to write? Php // load the message template include_once ("model. php"); // get data $ postStr = $ GLOBALS ["HTTP_RAW_POST_DATA"]; if (! Empty ($ postStr) {// parse data $ postObj = simplexml_load_string ($ postStr, 'simplexmlelement', LIBXML_NOCDATA); $ fromUsername
You have nothing to write. <无>
FromUserName; $ toUsername = $ postObj-> ToUserName; $ form_MsgType = $ postObj-> MsgType; if ($ form_MsgType = "text ") {$ form_Content = trim ($ postObj-> Content) ;}$ msgType = "text"; // assembled. This function is very interesting $ resultStr = sprintf ($ textTpl, $ fromUsername, $ toUsername, $ time, $ msgType, $ form_Content); echo $ resultStr;} else {$ msgType = "text"; $ resultStr = sprintf ($ textTpl, $ fromUsername, $ toUsername, $ time, $ msgType, 'not a text input'); echo $ ResultStr; exit ;}?>