Vars with curly brakets don't work
Posted: Wed Nov 08, 2006 7:55 am
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?
Thanks,
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,