Reply to Re: how to catch the execption of DOMDocument::load()

Your name:

Reply:


Posted by Janwillem Borleffs on 01/09/08 13:14

sunnyboyGuo@gmail.com schreef:
> maybe i did not describe clearly. i want to surpress php to send
> header automaticlly, but send
> header by myself.
> when i use error_reporting(0) to surpress errors, it can surpress
> them, but the function call header(HTTP/1.1 400 Not FOUND) didn't
> rewrite the header. i think php may send header before the call, but
> its warning was surpressed.
>

If you surpress the error, PHP doesn't send anything, unless there is
some whitespace or other characters printed by the script.

Try sending the header prior to the call and see what it produces.


JW

[Back to original 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

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