1. see php.net/include_once
2. Yes
$_SESSION['foo'] = new foo();

$myFoo = &$_SESSION['foo'];

$myFoo->var = 123;

/* page2.php */

$myFoo = &$_SESSION['foo'];

echo $myFoo->var;

-js


Michael Wai wrote:
> Hi everyone, I'm a newbie on PHP and MySQL. I've two questions that want to
> get some help.
> 
> 1. How to solve the problem of nested include? That's mean A include B and B
> include C.
> 2. Can I save the object in session?
> 
> Thanks for your great help!!
> 
> Regards,
> Michael
> 
> 
> 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to