Re: [PHP-DB] why is it so?
Nayyar Ahmed wrote: I am unable to understand when I execute etc.php, it give me the error "Warning: session_start(): Cannot send session cache limiter - headers already sent ." You need to have session_start() before _any_ output to the browser (such as HTML, spaces, newlines, etc). Sessions rely on cookies and the cookie must be set in the headers before any output. any_php_code(); session_start(); any_other_php_code(); ?> ... Also, this is better posted to php-general@lists.php.net since it has nothing to do with databases. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] why is it so?
On Thu, 30 Dec 2004 11:15:09 -0500, R. Van Tassel <[EMAIL PROTECTED]> wrote: > session_start() needs to be the first piece of code at the top of the page, > you must have something else before it. Hello, thanks it start working :) > > session_start() > // all php code follows > ?> > > > -Original Message- > From: Nayyar Ahmed [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 30, 2004 10:56 AM > To: php-db@lists.php.net > Subject: [PHP-DB] why is it so? > > Hello All, > I am unable to understand when I execute etc.php, > it give me the error > "Warning: session_start(): Cannot send session cache limiter - headers > already sent ." > > can you solve this leral ? > > TIA > > -- > Nayyar Ahmad > > Lecturer > Faculty Of Computer Science, > Institute Of Management Sciences, > Hayat Abad Peshawar , Pakistan. > Office : 92-091-9217404 , 9217452 > Cell : 92-0333-9139461 > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Nayyar Ahmad Lecturer Faculty Of Computer Science, Institute Of Management Sciences, Hayat Abad Peshawar , Pakistan. Office : 92-091-9217404 , 9217452 Cell : 92-0333-9139461 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] why is it so?
in this page somwhere, or perhaps in an include, there is a blank space or some html echoed out to the page bastien From: Nayyar Ahmed <[EMAIL PROTECTED]> Reply-To: Nayyar Ahmed <[EMAIL PROTECTED]> To: php-db@lists.php.net Subject: [PHP-DB] why is it so? Date: Thu, 30 Dec 2004 20:56:21 +0500 Hello All, I am unable to understand when I execute etc.php, it give me the error "Warning: session_start(): Cannot send session cache limiter - headers already sent ." can you solve this leral ? TIA -- Nayyar Ahmad Lecturer Faculty Of Computer Science, Institute Of Management Sciences, Hayat Abad Peshawar , Pakistan. Office : 92-091-9217404 , 9217452 Cell : 92-0333-9139461 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] why is it so?
session_start() needs to be the first piece of code at the top of the page, you must have something else before it. -Original Message- From: Nayyar Ahmed [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 10:56 AM To: php-db@lists.php.net Subject: [PHP-DB] why is it so? Hello All, I am unable to understand when I execute etc.php, it give me the error "Warning: session_start(): Cannot send session cache limiter - headers already sent ." can you solve this leral ? TIA -- Nayyar Ahmad Lecturer Faculty Of Computer Science, Institute Of Management Sciences, Hayat Abad Peshawar , Pakistan. Office : 92-091-9217404 , 9217452 Cell : 92-0333-9139461 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php