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!

Your Answer

13 + 8 =

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?