|
Posted by Berimor on 11/02/41 11:31
On Mon, 07 Nov 2005 14:13:37 +0200, myname <none@invalid> wrote:
> Berimor wrote:
>
>> its Manual!!!
>> the PHP Manual says
>> " ... Note: If you are using cookie-based sessions, you must call
>> session_start() before anything is output to
>> the browser.
>> "
>>
>
> I was referring to the part where you said:
> "You can set cookie at any place of script"
>
> That is only true, as long there has not been sent anything to the
> client. Or if using output buffering
sure - i always use buffering.
Note: As of PHP 4, you can use output buffering to send output prior to
the call of this function, with the overhead of all of your output to the
browser being buffered in the server until you send it. You can do this by
calling ob_start() and ob_end_flush() in your script, or setting the
output_buffering configuration directive on in your php.ini or server
configuration files.
--
---
Exact Meta Search | Major Search Engine
http://exactsearcher.com
Navigation:
[Reply to this message]
|