question about how long an object is active
I have a site which uses an index.php as a controller, and a couple of view pages (such as search.php and form.php) which are both 'included' via the index.php. So my question is, if I have an object instantiated in index.php is it in operation in any number of pages, provided they are all included from the index.php file that created the object.
A simple question, perhaps, but one which I really would like to be sure of the answer.
I must say, I like using an index file and then 'including' other files, a technique which I learned while reading Kevin Yank's books.