note 106346 deleted from language.constants.predefined by danbrown

From: Date: Sat, 29 Oct 2011 17:28:02 +0000
Subject: note 106346 deleted from language.constants.predefined by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-184219@lists.php.net to get a copy of this message
Note Submitter: fmmarzoa at gmx dot net ---- 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.

« previous php.notes (#184219) next »