I am very new to Yii framework and I am having issues creating a webapp. My hosting server is MediaTemple and following is how I am setting the directory for Yii:
-sub.domain.com
—framework (YiiRoot)
—html (WebRoot)
It has passed the requirements test. I am trying to create a webapp using $php yiic webapp ../html in the framework directory and I am getting the following error:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /nfs/c06/h05/mnt/12345/domains/sub.domain.com/framework/YiiBase.php on line 59
can you put in your root folder a simple script taht contains phpinfo(), call it example.php and execute if from a browser, example (www.yoursite.com/example.php)?
This way you will see, among other things, the version that is already used when serving wev pages.
Check the command line PHP version too… some hosting company alows to have PHP4 and PHP5 at the same time… so it can happen that the webpages uses PHP5 but in the command line that it uses PHP4