issues in PHP5?
Posted: Wed Jan 27, 2010 7:56 am
i'm using an older script which seems to be causing problems in PHP5...
causing "unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' " at line 27... [ $this->directory = $directory; ]
is there anything i can do with this to make it work?
thanks
gn
Code: Select all
class tpl_Magic
{
private $directory;
private $config;
private $templates = array();
private $variables = array();
public function __construct($directory)
{
$this->directory = $directory;
$this->templates['variables'] = array();
$this->templates['tplfiles'] = array();
$this->variables['names'] = array();
$this->variables['values'] = array();
}
is there anything i can do with this to make it work?
thanks
gn