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 emulat
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 i
hi there is a way to include files once in php3 ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3 matches
Mail list logo