0

Why is my website generating this error:

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting T_VARIABLE

This is the code being executed:

public function __construct($name, $path = false, $options = false)
{    
    if ($path !== false)
    {
        static::configure('cache_directory');
    }    
    if ($options == true)
    {
        $name .= '-'.$_SERVER['REMOTE_ADDR'];
    }
    $this->file_path = static::configure('cache_directory') .'/'. $name . '.idx.php';
}
Kev
  • 118,037
  • 53
  • 300
  • 385
user3047472
  • 1
  • 1
  • 1

1 Answers1

4

That's hebrew for "double colon".

static::configure is likely what's causing problems. static is a PHP keyword - I doubt you can use it as a class name. If you're trying to use late static bindings, make sure you've got PHP 5.3 or higher...

ceejayoz
  • 176,543
  • 40
  • 303
  • 368