You are here: Re: session_start() error « PHP Programming Language « IT news, forums, messages
Re: session_start() error

Posted by Gordon Burditt on 11/18/03 11:40

>Warning: session_start(): Cannot send session cache limiter - headers
>already sent (output started at c:\program files\easyphp1-8\www\the
>site\adminlogin.php:3) in c:\program files\easyphp1-8\www\the
>site\access.inc.php on line 5

What have you got on line 3 of c:\program files\easyphp1-8\www\the
site\adminlogin.php? Move it *AFTER* your call to session_start().

Any output will screw things up: a blank line, a DOCTYPE declaration,
debugging statements, error messages, or whatever.

>Does anyone know what it means? I am trying to create a account login
>and that warning comes up... Nothing bad happens. If anything does
>anyone know how to suppress php from showing the warning? though I'd
>rather figure out how to fix it

Call session_start() *FIRST*. Before anything else.

Gordon L. Burditt

 

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

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