Re: passing parameters to include
| From: | Richard Davey | Date: | Thu, 04 Mar 2004 19:31:37 +0000 |
| Subject: | Re: passing parameters to include | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179491@lists.php.net to get a copy of this message | ||
Hello Bob,
Thursday, March 4, 2004, 6:53:24 PM, you wrote:
BL> I want to pass a parameter to an include file.
BL> I know I can do what I want with a function but I'd rather do it with an
BL> include.
You cannot "pass" anything to an include file, let alone a parameter.
Your included file will already be able to see anything defined in the
global scope (i.e. before it was included) without you doing a thing.
Read the manual re: the include function (and probably variable scope
while you're at it).
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html