Ozimall / phpmobilizer

Automatically exported from code.google.com/p/phpmobilizer
0 stars 0 forks source link

Error when installing phpmobilizer #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I installed the current version (as of July 2, 2010) and when I try to use it, 
I receive the following error.

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or 
T_FUNCTION or T_VAR or '}' in /home/dynamo/www/m/mobiledetect.class.php on line 
11

Is there something off the top of your head that looks obvious or do you need 
OS version and Apache version?  I am running PHP 5.2.

Take care,

Harry

Original issue reported on code.google.com by KingHar...@gmail.com on 3 Jul 2010 at 1:36

GoogleCodeExporter commented 8 years ago
Ok .. issue fixed.

I needed to add the following to my .htaccess file.

AddHandler custom-php .php .pcgi .phtml .inc .phtml~ .php~ .inc~ .html~
Action custom-php /cgi-sys/php5

My config supports all versions from 3 on up ... and it was defaulting to 3.

Sorry about the confusion ... but I wanted to note this in case someone else 
has the same issue.

Original comment by KingHar...@gmail.com on 4 Jul 2010 at 1:57

GoogleCodeExporter commented 8 years ago
Just a guess but aren't .phtml~ .php~ .inc~ .html~ typically backup files and 
don't need to be parsed?

Original comment by MyR.J...@gmail.com on 19 Mar 2011 at 7:23

GoogleCodeExporter commented 8 years ago

Original comment by and...@awrsolutions.com on 19 Oct 2011 at 6:53