WeChat public platform can not be issued with a link ... Text

Source: Internet
Author: User
Tags cdata
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 Developer's Lake]]> 
 5839907284805129867 
    陈坤的公众号这段时间大火,大家.. 
 
    
    http://israel.duapp.com/web/photo.php 
 
    
     
  
                          

  
 "; if ($keyword = = "?" | | $keyword = = "?                ") {$resultStr = sprintf ($TEXTTPL, $fromUsername, $toUsername, $time);            Echo $resultStr;            }}else{echo "";        Exit }    }


I'm going to go up there without a reply.


Reply to discussion (solution)

Development has not been done.
The usual problem is to see if it can be executed into the IF logic.
You up question mark, received is a question mark.

Development has not been done.
The usual problem is to see if it can be executed into the IF logic.
You up question mark, received is a question mark. Development..... There is no way to debug it looks like.

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 
    
    news  
      
     1 
     
      <![ cdata[[Apple product information query]]>  
      
       
      
      
       
      
       
       
     
       0 
      
    
   
  
 "; if ($keyword = = "?" | | $keyword = = "?                ") {$resultStr = sprintf ($TEXTTPL, $fromUsername, $toUsername, $time);            Echo $resultStr;            }}else{echo "";        Exit }    }
Not with pictures or graphics.

PHP is available for debugging.

You can write some of the content you want to read in a TXT file.

So you can read it, which is equivalent to logging.

PHP is available for debugging.

You can write some of the content you want to read in a TXT file.

So you can read it, which is equivalent to logging. Good way to score for you.

  • 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.