Warning: include() [function.include]: Failed opening '__DIR__/bootstrap.php' for inclusion (include_path='.:/usr/lib64/php:/usr/share/pear') in /home2/user/public_html/core_xxx/model/smarty/Smarty.class.php on line 72
Fatal error: Class 'Smarty_Template_Compiled' not found in /home2/user/public_html/core_xxx/model/smarty/sysplugins/smarty_internal_template.php on line 554
This question has been answered by sheils. See the first response.
(include_path='.:/usr/lib64/php:/usr/share/pear')
include __DIR__ . '/bootstrap.php';
$this->compiled = Smarty_Template_Compiled::load($this);
include_path='.:/usr/lib64/php:/usr/share/pear'
__DIR__
You can use __DIR__ to get your current script's directory. It has been in PHP only since version 5.3
echo __DIR__."<br>"; echo __FILE__;
__DIR__
/home2/xxx/public_html/core_xxx/model/smarty/Smarty.class.php
echo phpversion() . "<br>"; echo __DIR__."<br>"; echo __FILE__;
_DIR_