日期:2014-05-16  浏览次数:20465 次

Linux 下执行php脚本
php -q

总是出现
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> - Offline</title>
<link rel="stylesheet" href="http://www.VegasChinaRen.com/templates/rhuk_solarflare/css/template_css.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>

<p>&nbsp;</p>
<table width="550" align="center" style="background-color: #ffffff; border: 1px solid">
<tr>
        <td width="60%" height="50" align="center">
        <img src="http://www.VegasChinaRen.com/logo_1.gif" align="middle" />
        </td>
</tr>
<tr> 
        <td align="center">
        <h1>
                </h1>
        </td>
</tr>
        <tr> 
                <td width="39%" align="center">
                <h2>
                This site is temporarily unavailable.<br /> Please notify the System Administrator             </h2>
                2               </td>
        </tr>
        </table>

</body>
</html>
------解决方案--------------------
脚本执行是不能解析html代码的,你这个需要通过服务器运行,比如在apache,nginx下面去运行php
------解决方案--------------------
没记错的话有个选项是可以设置不输出结果的自己查找一下,不过如楼上说的,你要这些HTML干嘛呢?