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 sunnyboyGuo on 01/10/08 03:10

On Jan 9, 9:14 pm, Janwillem Borleffs <j...@jwscripts.com> wrote:
> sunnyboy...@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

Hi JW,
thank you very much. i called echo() before the header(). now it
work well after removing it.

Best regards,
Tony

 

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

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