Hi I'm fairly new to PHP, though I've had past experience with C++ and have been working with PHP extensively for a bit now, and I'm currently coding a website in PHP with a MySQL database. I've stored most of my functions, paths, user data, and site-wide configs (like color and table code etc.) in objects of classes I created. What I've been doing up till now is doing a bunch of include()s to get them all in every page. But for every function I have to do global $library,$paths,$config,$users at the top of the execution block. Is there another way around this? In C I could simply use a global variable inside a function without having to declare it as global, though I couldn't modify the variable. In this case I have no desire to modify the variable. I just need to use the variables inside the object from within every function. How can this be done?
Henry