Class, Function and Session

From: Date: Tue, 16 Oct 2001 12:34:36 +0000
Subject: Class, Function and Session
Groups: php.db 
Request: Send a blank email to php-db+get-13356@lists.php.net to get a copy of this message
If I must use one function defined in the file " utility.inc " to the inside of one class defined in the file " class.inc ". When use the class in the main page, where I put session_start()? For Example: ********************************************* // top file "class.inc" require("utility.inc"); class Tool { ... utilityfunction(.... ,.... ,....); // this function is defined in "utility.inc" } *********************************************** // top main page what use class Tool: require("class.inc"); session_start(); ect...... ERROR: Warning: Cannot send session cache limiter - headers already sent .... Thank's. Guido

« previous php.db (#13356) next »