There's no need to 'pass' any variables.
HINT: pretend the include() command is being replaced with the code in your include
file,
this means that whatever variables are set/available at that point will also be
available in the include.
On Mon, 28 Jan 2002 18:54:02 -0800, Evansville Scene wro
On Wednesday 02 January 2002 20:43, you wrote:
> What you need to do is simply set the variables before you include
> the script.
>
> When you include a script with include() or require(), they fall
> into the same namespace as the include() or require() function that
> called them.
I read that in
What you need to do is simply set the variables before you include the script.
When you include a script with include() or require(), they fall into the
same namespace as the include() or require() function that called them.
Best Regards,
Jason Garber
IonZoft.com
At 06:54 PM 1/28/2002 -0800,
IL PROTECTED]>
Sent: Monday, January 28, 2002 9:54 PM
Subject: [PHP] Including files & variables ...
I'm having problems passing variables into included PHP files. How can I do
this?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
I may be repeating myself -- use the Nike solution: just do it! :-)
Global variables are implicitly passed to includes. Please provide more info if that's
not the case (not globals/globals somehow not being passed).
Bogdan
Evansville Scene wrote:
> I'm having problems passing variables into in
I'm having problems passing variables into included PHP files. How can I do this?
6 matches
Mail list logo