[PHP-DB] cookies and Global variables

2002-06-06 Thread Dib, Walid (MED, Stagiaire GEMS)

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







-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP-DB] cookies and Global variables

2002-06-06 Thread Gary . Every

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:[EMAIL PROTECTED]
http://accessingram.com


-Original Message-
From: Dib, Walid (MED, Stagiaire GEMS) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 2:06 AM
To: '[EMAIL PROTECTED]'
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