note 63292 added to function.get-included-files
| From: | quis-AT-maffiaworld-DOT-net at osu1 dot php dot net | Date: | Sat, 18 Mar 2006 17:08:41 +0000 |
| Subject: | note 63292 added to function.get-included-files | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-106040@lists.php.net to get a copy of this message | ||
If you wan`t to compare __FILE__ and $_SERVER['SCRIPT_NAME']
you could use realpath()
it strips out symlinks and things like that
realpath(__FILE__) == realpath($_SERVER['SCRIPT_NAME'])
----
Server IP: 80.253.112.111
Probable Submitter: 84.27.152.145
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.get-included-files.php
Edit -- http://master.php.net/note/edit/63292
Del: integrated -- http://master.php.net/note/delete/63292/integrated
Del: useless -- http://master.php.net/note/delete/63292/useless
Del: bad code -- http://master.php.net/note/delete/63292/bad+code
Del: spam -- http://master.php.net/note/delete/63292/spam
Del: non-english -- http://master.php.net/note/delete/63292/non-english
Del: in docs -- http://master.php.net/note/delete/63292/in+docs
Del: other reasons-- http://master.php.net/note/delete/63292
Reject -- http://master.php.net/note/reject/63292
Search -- http://master.php.net/manage/user-notes.php