Re: check if a file is included

From: Date: Sat, 13 Sep 2008 09:45:04 +0000
Subject: Re: check if a file is included
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-280061@lists.php.net to get a copy of this message
Well checking the $_SERVER array will tell you if the current page requested by the visitor is the script you want to check for. There's something in an if statement in PHP called else, so you can check if it isn't... That should do exactly what you just asked. Ash www.ashleysheridan.co.uk

« previous php.general (#280061) next »