Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

libxml_use_internal_errors(3) [php man page]

LIBXML_USE_INTERNAL_ERRORS(3)						 1					     LIBXML_USE_INTERNAL_ERRORS(3)

libxml_use_internal_errors - Disable libxml errors and allow user to fetch error information as needed

SYNOPSIS
bool libxml_use_internal_errors ([bool $use_errors = false]) DESCRIPTION
libxml_use_internal_errors(3) allows you to disable standard libxml errors and enable user error handling. PARAMETERS
o $use_errors - Enable ( TRUE) user error handling or disable ( FALSE) user error handling. Disabling will also clear any existing libxml errors. RETURN VALUES
This function returns the previous value of $use_errors. EXAMPLES
Example #1 A libxml_use_internal_errors(3) example This example demonstrates the basic usage of libxml errors and the value returned by this function. <?php // enable user error handling var_dump(libxml_use_internal_errors(true)); // load the document $doc = new DOMDocument; if (!$doc->load('file.xml')) { foreach (libxml_get_errors() as $error) { // handle errors here } libxml_clear_errors(); } ?> The above example will output: bool(false) SEE ALSO
libxml_clear_errors(3), libxml_get_errors(3). PHP Documentation Group LIBXML_USE_INTERNAL_ERRORS(3)

Check Out this Related Man Page

IS_STRING(3)								 1							      IS_STRING(3)

is_string - Find whether the type of a variable is string

SYNOPSIS
bool is_string (mixed $var) DESCRIPTION
Finds whether the type given variable is string. PARAMETERS
o $var - The variable being evaluated. RETURN VALUES
Returns TRUE if $var is of type string, FALSE otherwise. EXAMPLES
Example #1 is_string(3) example <?php $values = array(false, true, null, 'abc', '23', 23, '23.5', 23.5, '', ' ', '0', 0); foreach ($values as $value) { echo "is_string("; var_export($value); echo ") = "; echo var_dump(is_string($value)); } ?> The above example will output: is_string(false) = bool(false) is_string(true) = bool(false) is_string(NULL) = bool(false) is_string('abc') = bool(true) is_string('23') = bool(true) is_string(23) = bool(false) is_string('23.5') = bool(true) is_string(23.5) = bool(false) is_string('') = bool(true) is_string(' ') = bool(true) is_string('0') = bool(true) is_string(0) = bool(false) SEE ALSO
is_float(3), is_int(3), is_bool(3), is_object(3), is_array(3). PHP Documentation Group IS_STRING(3)
Man Page

5 More Discussions You Might Find Interesting

1. Programming

libxml c

i have xml file like this <root> <sree> <cnu value="cprogramming"\> </sree> </root> to retrieve the valuse of cnu element i tried the following code Code: void parseDoc() { xmlDocPtr doc; xmlNodePtr cur; doc = xmlParseFile("/usr/share/1.xml"); if (doc == NULL ) {... (1 Reply)
Discussion started by: phani_sree
1 Replies

2. Programming

libxml c

I've just started using libxml in c++, so far im able to parse a xml string. now i would like to replace <cms:CMSContent id="leftNav" /> with the string "left" and write the new xml out to cout; any ideas? string.xml <html xmlns:cms="http://www.test.com"> <body> <cms:CMSContent id="leftNav"... (1 Reply)
Discussion started by: spids
1 Replies

3. UNIX for Advanced & Expert Users

Spamassisn errors

Hi all, If this is the wrong forum to post this please direct me to the right place. While reading the maillogs I noticed the follow errors repeating over and over Apr 3 08:23:51 ws096 last message repeated 2 times Apr 3 08:23:51 ws096 spamd: Number found where operator expected at (eval... (4 Replies)
Discussion started by: mcraul
4 Replies

4. Programming

glib detected: malloc() memory curruption

I am using libxml2 library for XMl parsing and libxml++ is C++ wrapper over that. So I am using API of libxml++. I am creating my class and composing instance xmlpp::Node *pNode in that. my class also have funciton prepareXPathQuery() which creates query string and have other fucntion... (2 Replies)
Discussion started by: sharadwagh
2 Replies

5. UNIX for Beginners Questions & Answers

Advice on how to set up error handling

Hi Folks - I want to add error handling to a portion of a *.ksh, but I'm having difficulty doing so in an easily digestible way. Essentially, I want to echo weather it was successful or unsuccessful after each command. Here is the code I need to add error handling to: perl... (2 Replies)
Discussion started by: SIMMS7400
2 Replies