Re: Include Problems
| From: | Jeff Harris | Date: | Thu, 24 Jul 2003 19:10:03 +0000 |
| Subject: | Re: Include Problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156715@lists.php.net to get a copy of this message | ||
On Jul 24, 2003, "Eric Fleming" claimed that:
|I am having some problems using variables in included files. Can someone
|please look at my code below and see how I might accomplish what I am trying
|to do?
[snip]
|Now, when I try to reference the subnav variable in the inHeader.php or
|incFooter.php files, it comes up blank. I am basically trying to adjust the
|navigation on each page depending on the page I am on. I am just learning
|PHP, have programmed in ColdFusion for years and in ColdFusion this was not
|a problem. Any ideas?
|
|Eric Fleming
|
http://www.php.net/language.variables.scope
Jeff Harris
--
Registered Linux user #304026.
"lynx -source http://jharris.rallycentral.us/jharris.asc |
gpg --import"
Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED
Responses to this message should conform to RFC 1855.