You are here: Re: Question about sessions_start and header()? « PHP Programming Language « IT news, forums, messages
Re: Question about sessions_start and header()?

Posted by Alvaro G. Vicario on 07/26/06 19:17

*** bobmct escribió/wrote (Tue, 25 Jul 2006 17:06:40 -0400):
> It appears that if NO output is done prior to the header() function then the
> session_start() will still work.

PHP gives a warning when you do so. Try setting error_reporting to E_ALL
or, at least, E_ALL & ~E_NOTICE.


> Normally for debugging I display some variables as output and it appears
> that is what was biting me.
>
> As someone once said decades ago: "If the computer is smart enough to know
> its incorrect, then why isn't it smart enough to correct it?"

It could correct it, let's say, randomly ignoring some of your code? ;-)


--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--

 

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

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