Fw: [PHP] check if a file has already be included
| From: | Rick Emery | Date: | Mon, 17 Feb 2003 16:25:20 +0000 |
| Subject: | Fw: [PHP] check if a file has already be included | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-135852@lists.php.net to get a copy of this message | ||
can you use: include_once("filename");
This way, if it wasn't included, it will be. If it was included, this statement is ignored.
----- Original Message -----
From: "Greg" <gregchagnon@hotmail.com>
To: <>
Sent: Monday, February 17, 2003 10:18 AM
Subject: [PHP] check if a file has already be included
Is there any way to check if a file has been included / required already,
and if not include / require it?
Thanks!
-Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php