note 106346 added to language.constants.predefined
| From: | fmmarzoa at gmx dot net | Date: | Sat, 29 Oct 2011 17:11:22 +0000 |
| Subject: | note 106346 added to language.constants.predefined | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184217@lists.php.net to get a copy of this message | ||
This workaround of jrivero24 will not work within an include:
// Workaround for PHP below 5.3 versions
if ( !defined('__DIR__') ) define('__DIR__', dirname(__FILE__));
__DIR__ in 5.3 within an include gives the name of the included file directory, but
dirname(__FILE__) seems to return the name of the script which requires the include.
I've not find and alternative yet.
----
Server IP: 69.147.83.197
Probable Submitter: 87.216.79.141
----
Manual Page -- http://www.php.net/manual/en/language.constants.predefined.php
Edit -- https://master.php.net/note/edit/106346
Del: integrated -- https://master.php.net/note/delete/106346/integrated
Del: useless -- https://master.php.net/note/delete/106346/useless
Del: bad code -- https://master.php.net/note/delete/106346/bad+code
Del: spam -- https://master.php.net/note/delete/106346/spam
Del: non-english -- https://master.php.net/note/delete/106346/non-english
Del: in docs -- https://master.php.net/note/delete/106346/in+docs
Del: other reasons-- https://master.php.net/note/delete/106346
Reject -- https://master.php.net/note/reject/106346
Search -- https://master.php.net/manage/user-notes.php