note 62741 added to function.get-included-files

From: Date: Wed, 08 Mar 2006 16:04:40 +0000
Subject: note 62741 added to function.get-included-files
Groups: php.notes 
Request: Send a blank email to php-notes+get-105055@lists.php.net to get a copy of this message
As is often the case, YMMV. I tried the __FILE__ and SCRIPT_FILENAME comparison and found this: SCRIPT_FILENAME: /var/www/cgi-bin/php441 __FILE__: /raid/home/natpresch/natpresch/RAY_included.php As an alternative: count(get_included_files()); Gives one when the script is standalone and always more than one when the script is included. ---- Server IP: 216.194.113.175 Probable Submitter: 67.154.205.194 ---- 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/62741 Del: integrated -- http://master.php.net/note/delete/62741/integrated Del: useless -- http://master.php.net/note/delete/62741/useless Del: bad code -- http://master.php.net/note/delete/62741/bad+code Del: spam -- http://master.php.net/note/delete/62741/spam Del: non-english -- http://master.php.net/note/delete/62741/non-english Del: in docs -- http://master.php.net/note/delete/62741/in+docs Del: other reasons-- http://master.php.net/note/delete/62741 Reject -- http://master.php.net/note/reject/62741 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#105055) next »