Re: [PHP] How to store data that doesn't change?

2010-09-18 Thread chris h
On Sat, Sep 18, 2010 at 12:37 PM, Ashley Sheridan wrote: > On Sat, 2010-09-18 at 12:21 -0400, chris h wrote: > > When you really NEED a global resource I'm a fan of a registry class. It's > a little slower but not noticeable in most cases. > > With a registry you can store all global data in a s

Re: [PHP] How to store data that doesn't change?

2010-09-18 Thread Ashley Sheridan
On Sat, 2010-09-18 at 12:21 -0400, chris h wrote: > When you really NEED a global resource I'm a fan of a registry class. It's > a little slower but not noticeable in most cases. > > With a registry you can store all global data in a single, controlled area. > You can also store arrays and reso

Re: [PHP] How to store data that doesn't change?

2010-09-18 Thread chris h
When you really NEED a global resource I'm a fan of a registry class. It's a little slower but not noticeable in most cases. With a registry you can store all global data in a single, controlled area. You can also store arrays and resources instead of just strings. One down side to most registr

Re: [PHP] How to store data that doesn't change?

2010-09-16 Thread tedd
At 8:46 AM -0400 9/15/10, Peter van der Does wrote: Hi, How do you people store data that doesn't change, an example of this would be the version number of your software. You might want to use it through out your program but how to you store it? As far as I can see there are several options to

Re: [PHP] How to store data that doesn't change?

2010-09-15 Thread Ashley Sheridan
On Wed, 2010-09-15 at 08:46 -0400, Peter van der Does wrote: > Hi, > > How do you people store data that doesn't change, an example of this > would be the version number of your software. You might want to use it > through out your program but how to you store it? > > As far as I can see there a

Re: [PHP] How to store data that doesn't change?

2010-09-15 Thread Peter Lind
On 15 September 2010 14:46, Peter van der Does wrote: > Hi, > > How do you people store data that doesn't change, an example of this > would be the version number of your software. You might want to use it > through out your program but how to you store it? > > As far as I can see there are severa

[PHP] How to store data that doesn't change?

2010-09-15 Thread Peter van der Does
Hi, How do you people store data that doesn't change, an example of this would be the version number of your software. You might want to use it through out your program but how to you store it? As far as I can see there are several options to use this data. 1. Global Variable 2. Store it in a reg