0
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/a0/public_html/index.php on line 17爲什麼會顯示這些錯誤
Parse error: syntax error, unexpected T_STRING in /home/a0/public_html/index.php on line 17
爲什麼會顯示這些錯誤?
<?php
define('IS_DEMO', (gethostname() === 'youtubify' ? 1 : 0));
define('VERSION', 1.5);
require __DIR__.'/application/bootstrap/autoload.php';
$app = require_once __DIR__.'/application/bootstrap/app.php';
$kernel = $app->make('Illuminate\Contracts\Http\Kernel');
$response = $kernel->handle{
$request = Illuminate\Http\Request::capture() // line 17
};
$response->send();
$kernel->terminate($request, $response);
?>
什麼是您的本地PHP版本? –
''app-> make('Illuminate \ Contracts \ Http \ Kernel');'因爲反斜槓是Javascript字符串中的轉義字符,所以您必須加倍反斜槓。 – trincot
@FranzGleichmann PHP版本\t 5.2。* –