> but I would like to know if there is a neater, cleaner, sparkly way of doing > this. The way your doing it is fine. You could wrap it up in a custom function, eg: // True means called directly. function wasThisFileIncludedOrCalledDirectly () { return strstr($__SERVER["REQUEST_URI"], 'interceptor'); } Or something like that. -- Richard Heyes HTML5 Graphing for IE7, FF, Chrome, Opera and Safari: http://www.phpguru.org/RGraph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php