Multiple includes losing variables

Posted on 16th Feb 2014 by admin

Hey all,

just starting out w php and ran into a problem pretty quickly. I'm
including several files into each page. The variables in the first include file are functional in the main page, but are undefined in subsequent include files.

I've tried using define() to make them global variables but still have had no luck.

Any help would be greatly appreciated!

Other forums