Home > Backend Development > PHP Tutorial > Apache服务器怎的设置,可以隐藏html源代码内容

Apache服务器怎的设置,可以隐藏html源代码内容

WBOY
Release: 2016-06-13 12:35:07
Original
1040 people have browsed it

Apache服务器怎样设置,可以隐藏html源代码内容?
http://docs.php.net/manual/zh/intro-whatis.php

甚至可以将 web 服务器设置成让 PHP 来处理所有的 HTML 文件,这么一来,用户就无法得知服务端到底做了什么。 

问题:
1.

<br />
<html><br />
<head></head><br />
<body><br />
<h1>HTML</h1><br />
<?php<br />
   echo "PHP";<br />
?><br />
</body><br />
</html><br />
Copy after login


上面代码。
浏览器可以查看到html源代码。但是,只可以看到php源代码的结果!

如果,不想让用户知道html源代码的内容。
Apache服务器,怎样设置?
PHP官方手册(中文),哪有说明?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template