note 55645 deleted from function.include by aidan
| From: | aidan@php.net | Date: | Sat, 15 Apr 2006 16:34:18 +0000 |
| Subject: | note 55645 deleted from function.include by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-108161@lists.php.net to get a copy of this message | ||
Note Submitter: fackelkind honorsociety de
----
To check if the current script was includet, i wrote a fancy snipet:
<?php
$thisFileIsIncluded = (realpath ($_SERVER["SCRIPT_FILENAME"]) == realpath
(__FILE__));
?>