You are here: Re: [PHP] Why is the behavior between Apache2 and Tomcat so different? « PHP « IT news, forums, messages
Re: [PHP] Why is the behavior between Apache2 and Tomcat so different?

Posted by Richard Lynch on 03/15/05 18:13

> I have the same piece of PHP script running on either Apache2 or Tomcat.
> On Tomcat, I have the folllowing errors:
> 1- Cannot modify header information - headers already sent ....

Figure out what's sending out HTML / text / blank lines / error messages
*before* your header() call, and make it stop doing that.

> OR 2- Undefined index: error in ...

if (isset($_REQUEST['error'])){
//handle error here
}

>
> For one, I think this is because I am using the header PHP function.
> For two, I think this is because there is from time to time a http request
> parameter ("error") which not always defined.
>
> Could someone explain me why this is the case? And how I can change this
> behavior.
>
> Thanks.
> David Joffrin
> www.etradinginnovations.co.uk
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Like Music?
http://l-i-e.com/artists.htm

 

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

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