You are here: Re: ini_set() not working as expected « PHP Programming Language « IT news, forums, messages
Re: ini_set() not working as expected

Posted by yawnmoth on 06/08/06 09:34

Kimmo Laine wrote:
> "yawnmoth" <terra1024@yahoo.com> wrote in message
> news:1149751294.421301.16080@j55g2000cwa.googlegroups.com...
> <snip>
> Ini_set doesn't work that way because it's never meant to work that way in
> the first place. It doesn't affect the way headers and body are sent. once
> you start sending the body, session information cannot be sent, headers were
> already sent. When you close the first php tag, the random text is echoed
> out to client. That's when headers are sent and sending body begins.
>
> After ini_set you might want to call ob_start() if you want the output to be
> buffered. Then you should be able to set session variables later because
> output doesn't begin until ob_flush() is called or page ends.

Here's another question, then. Why does it also not work when my
..htaccess has the following line added to it?:

php_flag session.use_cookies off

Does this mean that php_admin_flag has been set to on in an earlier
directory or am I doing something wrong?

 

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

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