You are here: Re: sending multiple headers (session_start() and setcookie() ) « All PHP « IT news, forums, messages
Re: sending multiple headers (session_start() and setcookie() )

Posted by Mark on 01/21/05 05:47

Ben wrote:

>
> <?php session_start(); ?>
>
> <?php
> ob_start();

That blank line is killing you. In fact, any carriage return characters
not INSIDE <?php and ?> characters will cause output to be sent by PHP
unless you are using output buffering (ob_start()).

That means included/required files too !!!!

It can be quite upsetting to track all those down, so just make sure that
ob_start() is absolulutely the first thing that happens in ANY php script
file ...


marc.




--
I am not an ANGRY man. Remove the rage from my email to reply.

 

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

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