HomeSunday, June 24, 2018, 01:39:09
4

Prevent the error loading XML – libxml_use_internal_errors

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

php write to file - how to write data to a file using the php frwite function

Captcha V1 - Free PHP Script

An anti-spam form protection image written in PHP, Version: 1.1.

Upload Image With PHP

[Example3] Tutorial - How to upload image in php.

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.

Captcha V2 - Free PHP Script

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

Tell A Friend with Captcha

This form allows your visitors to suggest your site to a friend. It features an HTML email format and an admin notification email.

PHP Cookies - setcookie

Defines a cookie to be sent along with the rest of the HTTP headers.

Comments 1.1. :: PHP Script

This script allows your visitors to add comments to any single page on your web site.

PHP imagecreate

imagecreate() returns an image identifier representing a blank image of specified size.

Creating a basic bad word filter in PHP

This tutorial will show you how to create a basic bad word filter in PHP
About Author

wain

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