unexpected '&', expecting T_VARIABLE or '$' in /admin/inc/common.php - 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: unexpected '&', expecting T_VARIABLE or '$' in /admin/inc/common.php (/showthread.php?tid=1808) |
unexpected '&', expecting T_VARIABLE or '$' in /admin/inc/common.php - martinhansell - 2011-06-04 Hi, I successfully installed on my local test server, but when I uploaded to my host to install, I got this error. Code: Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /hsphere/local/home/shauncox/keylink.biz/getsimple/admin/inc/common.php on line 19 I have checked the file permissions for /data & /backups to make sure they are writeable. So now I'm not sure where to look... I'm a bit rusty but I thought this kinda of thing only happened when I coded my own thang :-) Anyone got any ideas? Thanks! Martin unexpected '&', expecting T_VARIABLE or '$' in /admin/inc/common.php - n00dles101 - 2011-06-04 Your running PHP 4, the minimum requirments are PHP 5 unexpected '&', expecting T_VARIABLE or '$' in /admin/inc/common.php - ccagle8 - 2011-06-04 no offense martinhansell, but this has been answered quite a few times... please search the forums before posting problems. In a couple of the forums posts around here there have been some solutions for you to attempt. unexpected '&', expecting T_VARIABLE or '$' in /admin/inc/common.php - martinhansell - 2011-06-04 ccagle8 Wrote:no offense martinhansell, but this has been answered quite a few times... please search the forums before posting problems. None taken - i did search, and I found nothing. I have reasonable searching experience, but wasn't sure what string to put together. How did you find it - maybe I can learn something more.. Cheers Martin unexpected '&', expecting T_VARIABLE or '$' in /admin/inc/common.php - martinhansell - 2011-06-04 n00dles101 Wrote:Your running PHP 4, the minimum requirments are PHP 5 nope - I checked that, n my host (FAQS) assures me we are running with PHP5. There may be somewhere that I have settings to alter - but I am running recent versions of Joomla! and Drupal off the same host, so I imagine we are up to speed?? Thanks. Martin unexpected '&', expecting T_VARIABLE or '$' in /admin/inc/common.php - n00dles101 - 2011-06-04 Check this one, you might have to add something to your .htaccess http://get-simple.info/forum/topic/1149/parse-error-syntax-error-unexpected-expecting-tvariable-or/ unexpected '&', expecting T_VARIABLE or '$' in /admin/inc/common.php - martinhansell - 2011-06-04 n00dles101 Wrote:Check this one, you might have to add something to your .htaccess Thanks for that.... I've tried it, but to no avail. Below are the (new) contents of my .htaccess file - but if I make all these changes before the install takes place, will the install work? Or is that more applicable to a database-driven system? Many thanks. Martin AddDefaultCharset UTF-8 Options -Indexes # blocks direct access to the XML files - they hold all the data! <Files ~ "\.xml$"> Order allow,deny Deny from all Satisfy All </Files> <Files sitemap.xml> Order allow,deny Allow from all Satisfy All </Files> RewriteEngine on # Usually it RewriteBase is just '/', but # replace it with your subdirectory path 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 AddHandler application/x-httpd-php5 .php // wasn't sure abt the ... here SetEnv PHP_VER |