note 114531 added to domdocument.loadhtmlfile
| From: | onemanbanddan at gmail dot com | Date: | Tue, 04 Mar 2014 12:28:31 +0000 |
| Subject: | note 114531 added to domdocument.loadhtmlfile | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198782@lists.php.net to get a copy of this message | ||
The options for surpressing errors and warnings will not work with this as they do for loadXML()
e.g.
<?php
$doc->loadHTMLFile($file, LIBXML_NOWARNING | LIBXML_NOERROR);
?>
will not work.
you must use:
<?php
libxml_use_internal_errors(true);
$doc->loadHTMLFile($file);
?>
and handle the exceptions as neccesarry.
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/domdocument.loadhtmlfile.php
Edit -- https://master.php.net/note/edit/114531
Del: integrated -- https://master.php.net/note/delete/114531/integrated
Del: useless -- https://master.php.net/note/delete/114531/useless
Del: bad code -- https://master.php.net/note/delete/114531/bad+code
Del: spam -- https://master.php.net/note/delete/114531/spam
Del: non-english -- https://master.php.net/note/delete/114531/non-english
Del: in docs -- https://master.php.net/note/delete/114531/in+docs
Del: other reasons-- https://master.php.net/note/delete/114531
Reject -- https://master.php.net/note/reject/114531
Search -- https://master.php.net/manage/user-notes.php