Brian Yoder Mon May 20 08:01:19 -0400 2013

Subject: Startup Difficulties

I am just trying to get set up for the first time. I can't seem to get PHP to like this (line 7):

ActiveRecord\Config::initialize(function($cfg)

The error messages are:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /public_html/survey/includes/activerecordsetup.php on line 7

Parse error: syntax error, unexpected T_STRING in /public_html/survey/includes/activerecordsetup.php on line 7

I have never seen this kind of scope identifier ('m assuming that that's what that slash means) but I assume someone out there knows.

What's the story there?

--Brian


Wouter T Mon May 20 09:56:00 -0400 2013

It's indeed the scope, called a namespace, which PHP added in 5.3.0. It appears to be the case that your PHP version is lower than this and thus incompatible with PHPAR.

(1-1/1)