I just wanted to let everyone know that I was finally able to create modular scripts in php. It took some time and alot of research but it can be done.
I found that my problem was that I wasn't setting my globals in the correct area and I wasn't useing the return command correctly. After reading more about return and globals on php.net I have found that useing these you can create the most modular scripts in the world.
PHP never seems to fail amazing me. Thank you all for your help on my last post. Sorry I wasn't able to find it and post a reply.