Check your Web Host's PHP Version (syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or ..

QuestionsCheck your Web Host's PHP Version (syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or ..
Paul Dahlen asked 12 years ago

I spent some time trying to figure out why this wonderful script worked perfectly on one site I manage, and not at all on another. After enabling all errors and warnings, I googled the error to discover that this usally meant a function was being declared as private, which is not supported in php ver. 4.x Sure enough, this web host was still running 4.9!

Hope I save someone some precious time.

Cheers!

1 Answers
Abu Ghufran answered 12 years ago

Thanks for sharing. Yes, php5 is required to run it. If someone want to still run it on 4.x, I can do changes.

Your Answer

19 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?