RE: [PHP-DB] cookies and Global variables

From: Date: Thu, 06 Jun 2002 12:05:01 +0000
Subject: RE: [PHP-DB] cookies and Global variables
Groups: php.db 
Request: Send a blank email to php-db+get-19642@lists.php.net to get a copy of this message
When you get the "Header already sent" error, that means that you are trying to send header info, e.g. cookie info AFTER you've already sent some header info. This is usually seen when your php script has an include in it (above your cookie stuff) that contains some html. Check your includes, and make sure that the header info is the first thing sent. Gary Every Sr. UNIX Administrator Ingram Entertainment (615) 287-4876 "Pay It Forward" mailto:gary.every@ingramentertainment.com http://accessingram.com -----Original Message----- From: Dib, Walid (MED, Stagiaire GEMS) [mailto:Walid.Dib@med.ge.com] Sent: Thursday, June 06, 2002 2:06 AM To: 'php-db@lists.php.net' Subject: [PHP-DB] cookies and Global variables Hello 1) I want to use cookies for my site, how can I do it? My browser warn me that headers are already sent!! 2) How can I use the same variables on all pages: for example: $login, I need this variable on all pages to send requests to a MySQL database. Thanks!!!! DIB Walid

« previous php.db (#19642) next »