[PHP] session class driving me nuts

2001-09-30 Thread andreas \(@work\)

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] session class driving me nuts

2001-09-30 Thread Joel Ricker

: hi ,
:
: gallerie.php:
:
: Fatal error: Call to a member function on a non-object in
: /home/sites/site76/web/galerie/shop.php on line XX

If I'm following you right and the class code you are trying to run is in
gallerie.php, then your error is in shop.php.

Joel



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]