note 93240 deleted from language.constants.predefined by danbrown

From: Date: Sun, 30 Aug 2009 18:55:35 +0000
Subject: note 93240 deleted from language.constants.predefined by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160057@lists.php.net to get a copy of this message
Note Submitter: Sam Yong - hellclanner at live dot com ---- Take note that if you put the __FILE__ constant in a function, and call the function in another file, the __FILE__ constant will still return the file where the function is. see example below: in bar.php: <?php function a(){ return __FILE__; } ?> in foo.php <?php include('bar.php'); echo a(); ?> Output will be the full pathname to 'bar.php', not 'foo.php'

« previous php.notes (#160057) next »