Quote Originally Posted by TonyBaird
I don't think the use of globals in PHP is not always a bad thing. There are instances where it just makes sense. For example the database class in most PHP software is used almost globally in everything.
Well ... you probably picked the worst possible example. A lot of applications have a global named $db. What happens when you want to run two of them together ?