Ad block is installed and active. Please support us by disabling it.
HomeFriday, September 22, 2017, 00:44:53
4

Prevent the error loading XML – libxml_use_internal_errors

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

str_replace - This function returns a string or an array with all occurrences of search in subject replaced with the given replace value

Creating a basic bad word filter in PHP

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

Upload Image With PHP

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

PHP Links Script 1.1.

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. The script is easy to customize to suit your needs.

Comments 1.1. :: PHP Script

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

MySQL Basic Functions

MySQL Basic Functions - select, delete, update..

PHP $_POST Function

Collect values from a form sent with method post

Timed Redirect JavaScript

Timed redirect javaScript/PHP example

PHP imagecreate

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

MySQL to RSS

Publishing MySQL data in RSS
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.