RE: [PHP] require_once for php3

2003-03-24 Thread Don Read
On 24-Mar-2003 daniel wrote: hi there is a way to include files once in php3 ? I've always used function_exists(): if (! function_exists('debug')) include('common.inc');// get the basics if (! function_exists('array_pop')) include('libphp4.php3'); // get

Re: [PHP] require_once for php3

2003-03-23 Thread Jason Sheets
You could write a wrapper around the include function that uses a global array, each time it is called it checks the global array to see if the file has been included, if it hasn't it includes the file and adds the file to the array. Jason daniel wrote: hi there is a way to include files once