Linux 下执行php脚本

shuiguoqu 2014-02-26 02:15:29
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> </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>
...全文
134 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
黄袍披身 2014-02-27
  • 打赏
  • 举报
回复
没记错的话有个选项是可以设置不输出结果的自己查找一下,不过如楼上说的,你要这些HTML干嘛呢?
fatlism 2014-02-26
  • 打赏
  • 举报
回复
脚本执行是不能解析html代码的,你这个需要通过服务器运行,比如在apache,nginx下面去运行php

21,893

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧