Odp: [PHP-DB] Class, Function and Session

From: Date: Tue, 16 Oct 2001 12:34:16 +0000
Subject: Odp: [PHP-DB] Class, Function and Session
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-13357@lists.php.net to get a copy of this message
If you call session_start() it MUST be BEFORE any other PHP commands and HTML stuff ----- Original Message ----- From: SmileBit <g.allione@onion.it> To: <php-db@lists.php.net> Sent: Tuesday, October 16, 2001 2:34 PM Subject: [PHP-DB] Class, Function and Session > 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 > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > -- Zamow odbitki ze zdjec cyfrowych lub archiwum zdjec na CD! [ http://lab.foto.onet.pl/laboratorium.html ]

« previous php.db (#13357) next »