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"

-----Original Message-----
From: Dib, Walid (MED, Stagiaire GEMS) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 2:06 AM
Subject: [PHP-DB] cookies and Global variables


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.


DIB Walid


Reply via email to