Wednesday 19 June 2019

laravel - How do I solve this PHP version incompatibility on my host, and how to get that Kernel:class the right way?


Parse error: syntax error, unexpected 'class' (T_CLASS), expecting
identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in
/home/capollos/public_html/canopyinteriors/index.php on line 50






require __DIR__.'/../../../canopy/bootstrap/autoload.php';

$app = require_once __DIR__.'/../../../canopy/bootstrap/app.php';


line 50 .. it has to do with the php version on my host cpanel.




$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);

$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);

$response->send();

$kernel->terminate($request, $response);
?>

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...