Problem
I have an application that I am attempting to get online; from local dev-machine to hosting server. Albeit, my application works locally via XAMPP, running PHP v5.6, my hosting server throws up an error once it incurs (or attempts to parse) a namespace. Then, the code (on the server-side) throws this error
Parse error: syntax error, unexpected T_STRING in /home3/username/public_html/inc/controller.php on line 11
when I attempt to access the root index.php file, which reads:
index.php
# Debugging
error_reporting(E_ALL);
ini_set('display_errors', 1);
# Load Controller
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/controller.php';
# Parse Application
echo $app->output();
however, the namespace issue reside in the controller, or the 'controller.php' denoted above. Which reads:
controller.php
namespace WAFFLE\Controller;
use WAFFLE\Controller; # Primary: controller for index.php
use WAFFLE\Framework\Engines\Template; # Template: engine developed to substitute special WAFFLE tags while publishing a clean HTML document
and line 11 would be:
namespace WAFFLE\Controller;
Both systems (local & remote) are both utilizing PHP v5.6, and "for the life of me" I can't figure out the problem here. Any assistance on this issue would surely be appreciated. Unfortunately, the helpful techs over at bluehost haven't been able to assist me on this matter, and (as mentioned) this little application does work; locally. However, once it gets uploaded to my hosting service's server, it throws the aforementioned error.