「PHP構文チェッカー」で下記のPHPのプログラムにエラーが無いか判断してもらいましが
結果は
構文エラーがあります
PHP Parse error: syntax error, unexpected '<', expecting end of file in Standard input code on line 1
とでました。
しかし そのエラーが箇所が下記のPHPには見当たりません。
どう判断したいいのでしょうか?
よろしくお願いいたします。
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?php if (isset($title)): ?><?= $this->escape($title) ?> - <?php endif; ?>Mini Blog</title> <link rel="stylesheet" href="/css/style.css"> </head> <body> <div id="header"> <h1><a href="<?= $base_url ?>/">Mini Blog</a></h1> </div> <div id="nav"> <p> <?php if ($session->isAuthenticated()): ?> <a href="<?= $base_url ?>/">ホーム</a> <a href="<?= $base_url ?>/account">アカウント</a> <?php else: ?> <a href="<?= $base_url ?>/account/signin">ログイン</a> <a href="<?= $base_url ?>/account/signup">アカウント登録</a> <?php endif; ?> </p> </div> <div id="main"> <?= $_content ?> </div> </body> </html>
回答2件
あなたの回答
tips
プレビュー
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。