RE: [PHP] require_once for php3
| From: | Don Read | Date: | Mon, 24 Mar 2003 08:58:49 +0000 |
| Subject: | RE: [PHP] require_once for php3 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140813@lists.php.net to get a copy of this message | ||
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 emulation lib.
Regards,
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.