include not working in another file being included
Posted: Tue May 06, 2008 2:42 pm
I have a file called Thanks, it includes in the following order 2 files
languagefile.php
incThanks.php
Everything from languagefile.php is not shown on incThanks.php
but when I set it up so incThanks is includes from Thanks.php and languageFile.php is included from incThanks.php it works fine.
err, that was kind of hard to follow so in a diagram it would look like
not working
working
Anyways I was just wondering why this could be the case. I was under the assumption that the way includes works it makes it as though all the code is just added in, so why couldn't incThanks.php pick up on the languagefile.php code?
Thanks,
languagefile.php
incThanks.php
Everything from languagefile.php is not shown on incThanks.php
but when I set it up so incThanks is includes from Thanks.php and languageFile.php is included from incThanks.php it works fine.
err, that was kind of hard to follow so in a diagram it would look like
not working
Code: Select all
Thanks.php -> languagefile.php
-> incThanks.php
Code: Select all
Thanks.php -> incThanks.php -> languageFile.php
Thanks,