Ad block is installed and active. Please support us by disabling it.
HomeMonday, January 22, 2018, 18:19:15
4

Prevent the error loading XML – libxml_use_internal_errors

Tuesday, February 10, 15, 13:40:40, 3 Yaers Ago Via wain, Hits: 3244
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

PHP Trim

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

PHP form with image upload

Advanced Contact Form with email and form field validation.It allows your visitors to send you an email directly from your website.Features: Image Upload, HTML Output, Captcha Image.

PHP explode

Explode — Split a string by string.

Link Generator PHP Script

This script will allow your visitors to create links online.To use the "link generator" script completely free , the "powered by" link at the bottom of the pages must stay intact.

MySQL – Select from two tables

Select data from two tables, PHP MySQL

Create dynamic Web Pages with PHP & MySQL

Create dynamic Web Pages with PHP & MySQL, Requirement(s): PHP Server, MySQL

Link Base Pro :: Free Link Index Script

This script allows you to 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.

PHP highlight_string - PHP Tutorial

Outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP. Requirement(s): PHP Server.

PHP form with file upload

Advanced Contact Form with email and form field validation. It allows your visitors to send you an email directly from your website.

Advanced Contact Form - PHP Script

Advanced Contact Form with email and form field validation. Features: HTML Output(Response), Captcha Image.
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.