Use sessions (like session_start() ) -- Andrey Hristov Web Developer Icygen Corporation BUILDING SOLUTIONS http://www.icygen.com
On Tuesday 23 October 2001 11:55 am, you wrote: > I'd like to to make a Singleton object in PHP4. > I'm trying to use a static variable in a function to do that. > Every time I use the reload in the Browser client, the file doesn't seem > to keep the information (I kind of expected that). > > I could think only 2 ways to do that. > 1. Using shared memory -> which I don't think is really an option for it > would make the code to difficult to manage later on. > 2. Using environment variables -> which would not be good to store any > kind of data, such as a pointer to an open file. > > Any suggestions anyone ? > > Thanks, > Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]