note 11289 added to Classes and Objects
| From: | buzz77 at gmx dot net | Date: | Wed, 14 Feb 2001 13:39:58 +0000 |
| Subject: | note 11289 added to Classes and Objects | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11044@lists.php.net to get a copy of this message | ||
OOPS i forgot:
of course you must include the source of your class BEFORE you load the session variables with
start_session().
So the correct syntax would be :
require("simple.lib.php");
start_session();
Remember that this should be the first 2 statements in your .php-file, before you print/echo
anything out.
http://www.php.net/manual/en/language.oop.php