The WeChat public platform cannot issue a link... Text

Source: Internet
Author: User
The public platform cannot issue a link... Text
Public function responseMsg () {$ postStr = $ GLOBALS ["HTTP_RAW_POST_DATA"]; if (! Empty ($ postStr) {$ postObj = simplexml_load_string ($ postStr, 'simplexmlelement', LIBXML_NOCDATA); $ fromUsername = $ postObj-> FromUserName; $ toUsername = $ postObj-> ToUserName; $ keyword = trim ($ postObj-> Content); $ time = time (); $ textTpl ="
                         
  %s
                          
  %s
                          
  
   
% S
                         
  link
   
  <! [CDATA [public platform developers]> 
  陈坤的公众号这段时间大火,大家..
   
  http://israel.duapp.com/web/photo.php
   
  
   
5839907284805129867
                           
 "; If ($ keyword = "? "| $ Keyword = "? ") {$ ResultStr = sprintf ($ textTpl, $ fromUsername, $ toUsername, $ time); echo $ resultStr ;}} else {echo" "; exit ;}}


Me? No reply ..


Reply to discussion (solution)

I have never done any development.
This problem is usually caused by whether it can be implemented in the if logic.
You raise the question mark. do you receive the question mark.

I have never done any development.
This problem is usually caused by whether it can be implemented in the if logic.
You raise the question mark. do you receive the question mark. Development ..... It seems that there is no way to debug it ..

Public function responseMsg () {$ postStr = $ GLOBALS ["HTTP_RAW_POST_DATA"]; if (! Empty ($ postStr) {$ postObj = simplexml_load_string ($ postStr, 'simplexmlelement', LIBXML_NOCDATA); $ fromUsername = $ postObj-> FromUserName; $ toUsername = $ postObj-> ToUserName; $ keyword = trim ($ postObj-> Content); $ time = time (); $ textTpl ="
                         
  %s
                          
  %s
                          
  
   
% S
  
  news
      
  
  1            
              
   <! [CDATA [[Apple product information query]>            
   序列号:USE IMEI NUMBERIMEI号:358031058974471设备名称:iPhone 5C设备颜色:设备容量:激活状态:已激活电话支持:未过期[2014-01-13]硬件保修:未过期[2014-10-14]生产工厂:中国    
               
   http://avatar.csdn.net/B/1/5/1_u013582606.jpg
               
   
           
          
  
   
0
                          
 "; If ($ keyword = "? "| $ Keyword = "? ") {$ ResultStr = sprintf ($ textTpl, $ fromUsername, $ toUsername, $ time); echo $ resultStr ;}} else {echo" "; exit ;}}
I cannot use text or text.

Php can be debugged.

You can write some content you want to read into a txt file.

This is equivalent to logging.

Php can be debugged.

You can write some content you want to read into a txt file.

This is equivalent to logging. Good way to give you a score

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.