[thelist] PHP: Equiv of CF Application.Scope?

Frank framar at interlog.com
Mon Mar 4 03:19:01 CST 2002

I'm just starting around the borders of learning PHP right now, and
I've run into a gotcha due to some of my coding habits. Cold Fusion
has the nice feature of a variety of scopes, specifically the
Application.Scope. This means that I can run multiple copies of my
apps on the same server and not worry about variable conflicts.

 From my preliminary understanding of PHP, all variables (function
locals excepted) seem to be global. That's cool, but I'm wondering
how I will be able to run multiple copies of an app without worrying
about conflicts. How will the server recognize that a session or
regular variable belongs to a particular instance of the app, without
re-coding each app, each time?

Does PHP have the equivalent of of CF's Application scope?

By the way PHP looks pretty cool. Way cool in fact!


Our best destiny, as planetary cohabitants, is the development
of what has been called "species consciousness" - something over
and above nationalisms, blocs, religions, ethnicities.

Frank Marion                      Framar Studios
frank at framarstudios.com           http://www.framarstudios.com

More information about the thelist mailing list