Re: include_once 'Config_File.class.php'

From: Date: Wed, 20 Jun 2001 16:44:56 +0000
Subject: Re: include_once 'Config_File.class.php'
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-900@lists.php.net to get a copy of this message
On Wed, 20 Jun 2001, Bernhard Fuerst wrote: > Hi, > > sorry if this was discussed earlier - I'm new to this list. > > In Smarty.class.php, line 181 (Version 1.4.2): > > Why not use > > include_once dirname(__FILE__) . '/Config_File.class.php'; > > as used in line 43 to include Smarty.addons.php? So we are completely > independend from PHP's include_path. Because dirname(__FILE__) doesn't really work consistently across systems and PHP versions. Sometimes __FILE__ contains full path to the file, sometimes only the filename. -Andrei * "Lack of planning on your part doesn't constitute an emergency on my part." *

« previous php.smarty.general (#900) next »