GetSimple Support Forum
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5)
+--- Thread: Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' (/showthread.php?tid=1067)



Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' - kiksy - 2010-10-19

Hi there,

Trying to install GetSimple , I rename temp.htaccess to .htaccess ,navigate to the directory then get this:


GetSimple Version 2.03 - Latest version installed
PHP Version 5.2.14 - OK
Folder Permissions OK - Writable
cURL Module Installed - OK
GD Library Installed - OK
SimpleXML Module Installed - OK
Default Timezone Function Installed - OK
Apache Mod Rewrite Installed - OK


Enter site name etc and click ok, then brings up the error:


Code:
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /homepages/33/d337644085/htdocs/GetSimple/admin/inc/common.php on line 17


from the page :

http://mysite.co.uk/GetSimple/admin/welcome.php

an email is successfully sent saying site setup has worked.


Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' - ccagle8 - 2010-10-21

that is odd - i would think that this is because you don't have 5.2 installed - but according to your screenshot, you do. What OS is this server?


Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' - kiksy - 2010-10-21

Server is running linux. Php 4 enabled by default, but I followed the hosts guide to enable 5 by editing the htaccess.


Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' - kiksy - 2010-10-22

Ok , think Ive solved it.

I edited the .htaccess file to read:

Code:
AddDefaultCharset UTF-8
RewriteEngine on

RewriteBase /GetSimple/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/?$ index.php?id=$1 [QSA,L]

AddType x-mapp-php5 .php

SetEnv PHP_VER      


And now it works, thanks for the help.


Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' - yojoe - 2010-10-22

Add a handler to this type as well.
Code:
AddType x-mapp-php5 .php
[b]AddHandler application/x-httpd-php5 .php[/b]