HomeFriday, June 23, 2017, 06:57:19
4

Prevent the error loading XML – libxml_use_internal_errors

Tuesday, February 10, 15, 13:40:40, 2 Yaers Ago Via wain, Hits: 2026
libxml_use_internal_errors() allows you to disable standard libxml errors and enable user error handling.
Example:
Code:
libxml_use_internal_errors(true);
//allows you to disable standard libxml errors and enable user error handling
$load = simplexml_load_string($res);
if (!$load) {
echo "Failed loading document";
foreach(libxml_get_errors() as $error) {
echo "<pre>" . $error->message . "</pre>";
}

}else{
$load = new SimpleXmlElement($res);
}

Sign In

Sponsor

Related

Adsense crawler errors and robots.txt

How to fix Google AdSense crawler errors in robots.txt

MySQL Basic Functions

MySQL Basic Functions - select, delete, update..

MySQL Inner Join

MySQL Inner Join - Creating Dynamic Webpages Using PHP and MySQL, Requirement(s): PHP Server, MySQL

PHP Trim

trim() Strip whitespace (or other characters) from the beginning and end of a string.

MySQL to RSS

Publishing MySQL data in RSS

Math Captcha V6

PHP Math Captcha Image Version 6

Link Base 2.0.

Manage your links using a MySQL database. It features easy install, user submission, and an admin panel to add, edit and remove categories and links.

Convert pdf to image - mpdf

Convert pdf file to jpg with php and mpdf

Smarty Paginate Example - Smarty Pagination with PHP

Smarty Paginate Example, Smarty Pagination with PHP. SmartyPaginate: a class/plugin for data set pagination within the Smarty template environment

Captcha V2 - Free PHP Script

PHP Captcha protection image Version 2, - Requirement(s): PHP Server, GD Library
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Thu, Jun 15, 17
So far has created 115 entries.
wain
This author has not yet filled in any details.