comparing $php_self with real file name

From: Date: Tue, 15 Apr 2003 10:13:20 +0000
Subject: comparing $php_self with real file name
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-143892@lists.php.net to get a copy of this message
okay, i've checked thru the manual and can't find what i'm looking for. i'm probably not looking hard enough or summit tho, so please excuse... if have this... <?php if( basename($_SERVER['PHP_SELF']) == "style.php" ) { Header( "Location: ../index.php" ); } ?> at the top of my style sheet include to stop people accessing it directly. but i'd like to this a little more dynamically so i can include it in every include file. i want to compare the php_self with the real file name of that file... but i can't find how to get the real file name? i know this is simple, but i just can't find it :p thanks

« previous php.general (#143892) next »