Hi All,
I have a function that includes files based on some SQL queries. On one of
the first loaded files, I want to define a function and use it on another
included file. Something like:
includes file:
first_file.inc.php
This file has: $test = Show me!;
Then include file:
second_file.php
Subject: [PHP] require_once(); questions
Hi All,
I have a function that includes files based on some SQL queries. On one
of
the first loaded files, I want to define a function and use it on another
included file. Something like:
includes file:
first_file.inc.php
This file has: $test
I guess I know what may be wrong. My function that includes the files, it
is called several times, with different arguments being passed.
It is something like:
function LoadPositionedModules ($posv, $posh)
{
// $posv is vertical position, and $posh is horizontal position
// Inside
Try putting GLOBAL infront of the var to give it the greater scope
- Original Message -
From: Chris Anderson [EMAIL PROTECTED]
To: Inércia Sensorial [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 8:50 PM
Subject: Re: [PHP] require_once(); questions
Actually
4 matches
Mail list logo