Search found 9 matches
- Wed Aug 08, 2007 8:58 am
- Forum: PHP - Theory and Design
- Topic: How many include/reuire , and its effect on PHP script speed
- Replies: 16
- Views: 3149
- Wed Aug 08, 2007 3:45 am
- Forum: PHP - Theory and Design
- Topic: How many include/reuire , and its effect on PHP script speed
- Replies: 16
- Views: 3149
How many include/reuire , and its effect on PHP script speed
Hi friends, Hmmm this time i have a practical question. Hmmmmm so far my php applications (mostly sites) had only few "includes" like two or three classes in each. Now in my new app im having a very nice complex object structure and will have about 6 classes. So i have to included them in ...
- Wed Aug 08, 2007 1:26 am
- Forum: PHP - Theory and Design
- Topic: How do i keep singleton class object in a session?
- Replies: 18
- Views: 6727
- Wed Aug 08, 2007 1:15 am
- Forum: PHP - Theory and Design
- Topic: How do i keep singleton class object in a session?
- Replies: 18
- Views: 6727
Hey this is great yepiii we are learning.. Good thread. I'm too testing my script as ev0l and others said. Lets reconstruct object in every page and see how the performance is. I can carry the ID in a session variable so no problem. Next if can lets dig in to this singleton pattern and find a way we...
- Tue Aug 07, 2007 7:21 am
- Forum: PHP - Theory and Design
- Topic: How do i keep singleton class object in a session?
- Replies: 18
- Views: 6727
I appreciate your comment. Yea thats great to here what you guys use actually. I too need to know more about this object persistence. At least if we can mimic something like that. Something like i try. Only concern is with re-constructing objects having to pay the initial overload, is it worthy? if ...
- Tue Aug 07, 2007 6:27 am
- Forum: PHP - Theory and Design
- Topic: How do i keep singleton class object in a session?
- Replies: 18
- Views: 6727
:D thanks stereofrog, yea i'm really new to this design patterns sorry for any mistakes. My intention is keeping the Auth object alive. It contains userdata which is queried from DB. But if i do something like yours i have to created the Auth object again and again in every page. So each and everyti...
- Tue Aug 07, 2007 5:44 am
- Forum: PHP - Theory and Design
- Topic: How do i keep singleton class object in a session?
- Replies: 18
- Views: 6727
yes, hmmm this is my plan. I need to create a logger object. when somebody loggs, in the log() function is taking the id and creates a cutomerUser or Admin. But if the log function is not called or no prevailing object as logger is there the LOGGER class from getInstance() function is creating a gue...
- Tue Aug 07, 2007 5:06 am
- Forum: PHP - Theory and Design
- Topic: How do i keep singleton class object in a session?
- Replies: 18
- Views: 6727
- Tue Aug 07, 2007 3:14 am
- Forum: PHP - Theory and Design
- Topic: How do i keep singleton class object in a session?
- Replies: 18
- Views: 6727
How do i keep singleton class object in a session?
feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Hi I'm Ni...