Binary Beast API runs on local XAMPP, Parse errors on inmotionhosting.com

Avatar
  • updated
  • Answered

This is probably a beginners problem I will later feel dumb for not figuring out, but here goes:

I have been learning about the Binary Beast API and how to use it on a game fan site I volunteered on. The problem is that the code works flawlessly on my local XAMPP install, but when I upload it to a test server I get parse errors like this:

Parse error: syntax error, unexpected on line 654

I never modified any of the API libraries so the code within is exactly the same on my local install and likewise the same as the original code on github.

This has been driving me crazy because it doesnt have any errors when ran locally so I don't think it is a syntax error.

Has anyone seen anything that would cause that to happen? I feel like there is a problem in one of the web server or PHP config files that is causing this to happen, but I have no idea where it would be.

EDIT: I also forgot to add that the inmotionhosting webserver is running PHP 5.4 and my local XAMPP install is running 5.4.7 in case that matters.

Any help would be greatly appreciated.

Pinned replies
Avatar
Josh Green
  • Answer
  • Answered

Hello, it may be worth it to try and match your local PHP version, or try switching the InMotion PHP version to 7.4 

Avatar
Josh Green
  • Answer
  • Answered

Hello, it may be worth it to try and match your local PHP version, or try switching the InMotion PHP version to 7.4