Error: Object # hasnomethod 'load'

Source: Internet
Author: User
When we made an xml output today, we found that the xml document we directly used echo to input will prompt Error: Object # hasnomethodlsquo; loadrsquo; Error, and then switched to header... when we made an xml output today, we found that the xml document we directly used echo to input will prompt Error: Object # has no method 'load' Error, and then changed header () the output xml header file is fixed. record it below.

The xml length is too similar to that of the txt file, so the total txt file is confused. the code is as follows:

echo '
  
 
  http://www.phprm.com/
  
 
  2013-01-22T11:00:18+08:00
   '; exit; 

The xml output from such a piece of code cannot be verified by xml.

Error: Object # has no method 'load'

The code is as follows:

  
 
  http://www.phprm.com/
  
 
  2013-01-22T11:00:18+08:00
   

Just add a header. after several hours, the code is as follows:

  
 
  http://www.phprm.com/
  
 
  2013-01-22T11:00:18+08:00
   '; exit;  

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.