目前使用 Apache 跑 php服務
Apache/2.4 (Win64) PHP/7.3
假設網頁內容是:
1.html
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
.... 略
透過瀏覽器(Chrome/edge...),
https://127.0.0.1/1.html
然後檢視原始碼=>檢視網頁原始碼,
正常應該會在編譯過看到單純 HTML:
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
.... 略
https://127.0.0.1/1.html
然而實際瀏覽以及檢視網頁原始碼卻會夾帶一些 header 文字在其中,變成
Content-language: cs
Content-type: text/html; charset=UTF-8
Body:----------cs--
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="cs" xml:lang="cs">
<head>
<title>Objekt nenalezen!</title>
<link rev="made" href="mailto:xxxxx" />
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
body { color: #000000; background-color: #FFFFFF; }
a:link { color: #0000CC; }
p, address {margin-left: 3em;}
span {font-size: smaller;}
/*]]>*/--></style>
</head>
<body>
<h1>Objekt nenalezen!</h1>
<p>
Po鱉adovan矇 URL nebylo na tomto serveru nalezeno.
Pokud jste zadal(a) URL ru�㤔��, zkontrolujte, pros穩m,
zda jste zadal(a) URL spr獺vn��, a zkuste to znovu.
</p>
<p>
Content-language: cs
Content-type: text/html; charset=UTF-8
Body:----------cs--
....
以下略
...
這是哪個錯誤的模組文字被溢出嗎