Re: Newbie: nested include and object in session
| From: | Jonathan Sharp | Date: | Thu, 21 Nov 2002 03:42:34 +0000 |
| Subject: | Re: Newbie: nested include and object in session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125374@lists.php.net to get a copy of this message | ||
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
>
>
>