php-general | 2001092
Date: 09/30/01
- Next message: mydata: "[PHP] problem about ereg function"
- Previous message: Maxim Maletsky \(PHPBeginner.com\): "RE: [PHP] "The Kewl Script""
- Next in thread: Joel Ricker: "Re: [PHP] session & class driving me nuts"
- Reply: Joel Ricker: "Re: [PHP] session & class driving me nuts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hi ,
gallerie.php:
---------------------------------------------------------------
session_start();
class ABCD {
function add_pic($picture,$galerie) {
code here
}
}
$artego = new ABCD;
$artego->add_pic("Santiego","Humstein"); <-- line XX
..... more code
----------------------------------------------------------------
when i run this script i get:
Fatal error: Call to a member function on a non-object in
/home/sites/site76/web/galerie/shop.php on line XX
if i remove
session_start();
THEN IT WORKS !
but i need the session
WHATS GOING ON ?
thank you
andreas
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: mydata: "[PHP] problem about ereg function"
- Previous message: Maxim Maletsky \(PHPBeginner.com\): "RE: [PHP] "The Kewl Script""
- Next in thread: Joel Ricker: "Re: [PHP] session & class driving me nuts"
- Reply: Joel Ricker: "Re: [PHP] session & class driving me nuts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

