You are here: Hiding warnings « PHP Programming Language « IT news, forums, messages
Hiding warnings

Posted by deciacco on 07/17/06 15:48

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!!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация