Code: Select all
require_once( "inc/header.inc.php" );
require_once( "{$dir['inc']}design.inc.php" );
include( "{$dir['root']}templates/tmpl_{$tmpl}/scripts/index.php" );Thanks,
Moderator: General Moderators
Code: Select all
require_once( "inc/header.inc.php" );
require_once( "{$dir['inc']}design.inc.php" );
include( "{$dir['root']}templates/tmpl_{$tmpl}/scripts/index.php" );and what is the problem.......if display_errors = on and error_reporting(E_ALL) says nothing...and your files are still not included...then..yes you can say curly braces doesn't workamir wrote:I've just installed a program on my server that is using variables with curly brakets, here is some code from it:
the $dir is defined in header.inc.php, if I just echo right under the first line I get the value of the variable, however anything below {} does not work. Is it something in php.ini that needs to be changed?Code: Select all
require_once( "inc/header.inc.php" ); require_once( "{$dir['inc']}design.inc.php" ); include( "{$dir['root']}templates/tmpl_{$tmpl}/scripts/index.php" );
Thanks,