FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Preserving an object
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Preserving an object [message #174662 is a reply to message #174661] Sat, 25 June 2011 08:27 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
bruceaj wrote:
> I am creating an object in my "index.php". I want to use this object
> in many of my php pages. How can I preserve this object so other pages
> can use it and I don't have to recreate it??
>
> Thanks...
>
> Bruce

Put it in a separate file and include it?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: library using $_SESSION
Next Topic: PHP Function to translate a URL into the URL that it is redirected to
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 14:35:02 GMT 2024

Total time taken to generate the page: 0.03977 seconds