Headers after include

From: Date: Wed, 23 Apr 2003 11:16:15 +0000
Subject: Headers after include
Groups: php.general 
Request: Send a blank email to php-general+get-144989@lists.php.net to get a copy of this message
Hi all! I making a small portal with autentication. I created a config.inc file where i putted all global stuff and include it in all the files of the portal, but i get a warning ("Cannot modify header information - headers already sent...") when i use the header function to redirect the user to another page and in config i print nothing, here it is: <?php // definições para acesso à base de dados $DB_MODULE = "abstractdb_mysql.inc"; $DB_HOST = "localhost"; $DB_NAME = "pwlan"; $HEAD = "head.inc"; $FOOT = "foot.inc"; // definição das "variáveis" que assinalam a autenticação $IP = "uip"; $EXPIRE = "exp"; $ACCESS = "auth"; $ADMIN_STR = "admin"; // ... e níveis possíveis de autenticação $UNKNOWN = 0; $USER = 1; $ADMIN = 2; // ... e tempo de expiração $TIME_UP = 600; // (em segundos) ?> I already tried with define like define("$DB_MODULE" "abstractdb_mysql.inc") but the problem remains. Any help PLEASE! ---------------------------------------------------- António Rafael C. Paiva Electronics and Telecommunications Dep. Aveiro University

« previous php.general (#144989) next »