You are here: Re: how to catch the execption of DOMDocument::load() « PHP Programming Language « IT news, forums, messages
Re: how to catch the execption of DOMDocument::load()

Posted by Janwillem Borleffs on 01/09/08 12:40

sunnyboyGuo@gmail.com schreef:

> when there occured some error, it will send headers automatically, so
> i can not use header() to send expected header information.
> it will prompt message like this:
> <br />
> <b>Warning</b>: Cannot modify header information - headers already
> sent by (output started at /var/www/tpms.php:155) in <b>/var/www/
> tpms.php</b> on line <b>25</b><br />
>
> can i control it not send automatically, and to send myself header
> information?
>

You can use the PHP4 method to surpress the error (with the @-sign) or
alter the error_reporting setting (ini file or through the
error_reporting function) to E_FATAL (or one of the other possible
values/combinations; see http://www.php.net/error_reporting for details).

You can also disable the display_errors directive in your php.ini file.


JW

 

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

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