ドメインにindex.htm(PHPを含む)をアップロードしましたが、PHPを実行しません
by
助けて下さいさん
(0d7cc9db)
投稿数:3回
(ベストアンサー:1回)
(ベストアンサー:1回)
2021/11/09 15:45
下記のプログラムです、何が悪いのでしょうか。
HTMLの文字だけ表示され、ページが変わりません
<!doctype html public "-//w3c//dtd html 4.0 Frameset//en" "http://www.w3c.org/tr/rec-html40/frameset.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta name="viewport" contenet "width=device-width, initial-scale-a1, shrink-to-fit=no">
<!-- Bootstart CSS -->
<link rel="stylesheet" href="css/style.css">
<TITLE>HTTP練習</TITLE>
</head>
<main>
<h1 class="font-weight-normal"> よくわかるPHPの教科書で勉強中です</h1>
</header>
<h2> HTPWEB作成中</h2>
<h2> test08.php 頁のジャンプ</h2>
<pre>
<?php
header('Location: http://kuniharu.html.xdomain.jp/');
exit();
?>
</main>
</pre>
</body>
</html>
HTMLの文字だけ表示され、ページが変わりません
<!doctype html public "-//w3c//dtd html 4.0 Frameset//en" "http://www.w3c.org/tr/rec-html40/frameset.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta name="viewport" contenet "width=device-width, initial-scale-a1, shrink-to-fit=no">
<!-- Bootstart CSS -->
<link rel="stylesheet" href="css/style.css">
<TITLE>HTTP練習</TITLE>
</head>
<main>
<h1 class="font-weight-normal"> よくわかるPHPの教科書で勉強中です</h1>
</header>
<h2> HTPWEB作成中</h2>
<h2> test08.php 頁のジャンプ</h2>
<pre>
<?php
header('Location: http://kuniharu.html.xdomain.jp/');
exit();
?>
</main>
</pre>
</body>
</html>
by
.さん
(4b9b203e)
投稿数:257回
(ベストアンサー:32回)
(ベストアンサー:32回)
2021/11/09 20:27
https://secure.xfree.ne.jp/bbs/detail.cgi?td=1154
by
.さん
(4b9b203e)
投稿数:257回
(ベストアンサー:32回)
(ベストアンサー:32回)
2021/11/09 20:28
というか、<pre>を書いちゃだめでしょ?