Page 1 of 1

Is there something above the session to all the users?

Posted: Tue Jan 16, 2007 7:57 am
by nadavvin
Hello

I have class which I want to use with only one instance for all the pages and users.

It is possible?

For php4 and 5.

Nadav

Posted: Tue Jan 16, 2007 8:16 am
by GM
Only thing I can think of that remains the same for all users and all pages is the database and the file system.

You could store your class data as a serialized string in the database, and pull it out at the opening of every page.

If it isn't going to change much, then maybe you could also use text files to store the same data.