RE: [PHP-DEV] Instantiation of class objects
| From: | php4 at developersdesk dot com | Date: | Fri, 22 Dec 2000 12:32:16 +0000 |
| Subject: | RE: [PHP-DEV] Instantiation of class objects | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42126@lists.php.net to get a copy of this message | ||
Addressed to: "Chris Newbill" <cnewbill@onewest.net>
"PHP-DEV" <php-dev@lists.php.net>
** Reply to note from "Chris Newbill" <cnewbill@onewest.net> Fri, 22 Dec 2000
08:58:25 -0700
>
> Probably the best way to do it though would be allowing objects to be
> serialized...with their methods =)...so then I can just save them in
> my current session and recall them the next time around.
>
> I for one would love to have this!
Why would you want to store a separate copy of the code for each
session, when all you have to do is include() or require() it into each
program where it is used? (_Before_ you start the session.)
If you do store a separate copy with each of the thousands of sessions
you might have hanging around on your system, what happens when you
update the code? All of those old sessions will still have the old
code in them, ready to screw things up.
This is NOT a good idea. It has been well covered on this list in the
past, you might want to check the archives.
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com