Re: [PHP] Global instance of class

2001-11-21 Thread Brian Clark
Hi Silvia, @ 8:44:09 AM on 11/21/01, Silvia Mahiques wrote: > The code file (.php) that has this first reference is: > $global_var = new one_class(); > If I include this file (.php) in another php file, a new instance is > created again, and I want a unique instance in all project

[PHP] Global instance of class

2001-11-21 Thread Silvia Mahiques
Hello friends! I want to access a global instance of a class from diferents php files. How can I do this? Is it possible? The code file (.php) that has this first reference is: $global_var = new one_class(); If I include this file (.php) in another php file, a new instance is c