[PHP] require_once(); questions

2001-07-07 Thread Inércia Sensorial
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

Re: [PHP] require_once(); questions

2001-07-07 Thread Chris Anderson
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

Re: [PHP] require_once(); questions

2001-07-07 Thread Inércia Sensorial
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

Re: [PHP] require_once(); questions

2001-07-07 Thread Chris Anderson
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