HomeMonday, July 24, 2017, 22:35:30
4

Prevent the error loading XML – libxml_use_internal_errors

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

Filter Words in PHP - PHP Tutorial

Filter bad words in PHP, requirement(s): PHP server

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.

Contact Us 2.0. with HTML Page and Pop Up Frame

This is the same Contact Us 2.0. that is in this forum, But I have added more options to this script and a html page with a very nice pop Up frame that DONT get block by any pop Up software. Many websites use this type of script to bypass the blocking…

Inserting form data in MySql table

Inserting form data in MySql table with PHP

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

Stack Overflow Clone Script - Ja2BU

Open source question and answer script written in PHP, MySQL and jQuery. Main features are: SEO friendly url's, private message system, rating system, comments system.

PHP Write to File

PHP Write to File :: PHP Tutorial, requirement(s): PHP server

Math Captcha V6

PHP Math Captcha Image Version 6

php Array

These functions allow you to interact with and manipulate arrays in various ways. Arrays are essential for storing, managing, and operating on sets of variables.

PHP Redirect

Header (location) redirect must be processed before any output to the browser.
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.