Hiding warnings



I'm using the DOMDocument::loadHTML() method and it throws some
warnings:

DOMDocument::loadHTML() [function.loadHTML]: htmlParseEntityRef:
expecting ';' in Entity, line: 579

DOMDocument::loadHTML() [function.loadHTML]: Unexpected end tag : b in
Entity, line: 24

I believe these warnings are due to the loose formating of HTML so at
this point I'm not worried about them. (should I be?) I can use an
..htaccess file or settings in php.ini to hide these warnings, but I was
wondering if there was a better way. I was thinking I could use
error_reporting() to change the level before the loadHTML function and
then set it back. Any thoughts or suggestions?

Thanks!!

.



Relevant Pages

  • Re: 47th Street Photo
    ... with the same name expecting to attract the public. ... However the "47th Photo" was trademarked, ... and after warnings these businesses changed names. ...
    (comp.sys.hp48)
  • VB6 --> VB 2005 upgrade ...IDE now VERY slow!!!
    ... Yesterday I ran the Visual Basic Upgrade Wizard for a VB6 app. ... were many errors and warnings, more or less what I was expecting, so I ... The problem is that the IDE is SO ...
    (microsoft.public.dotnet.languages.vb)
  • Re: 47th Street Photo
    ... with the same name expecting to attract the public. ... However the "47th Photo" was trademarked, ... and after warnings these businesses changed names. ...
    (comp.sys.hp48)
  • Re: What is happening here
    ... I'm not sure what results I was expecting when I ran it, ... should be re-incremented Sheesh--there no damn short-circuit on the evaluation!! ... use strict; ... use warnings; ...
    (perl.beginners)
  • Re: Eval Errors
    ... >> What it doesn't understand is, why is there an identifier at this ... >> It was expecting an operator instead. ... They are warnings, except that they are mandatory ones. ... > correctly keeping the program running here, ...
    (perl.beginners)