dongmei3498 2013-05-23 07:30
浏览 22
已采纳

使用filename.php时,浏览器上不显示任何内容

it produces output when it is saved as filename.html but when i try to change it to filename.php

then open the link in the brown using filename.php it doesnt produce output anymore

NOTE: i removed some of the code too long

       <?php
echo"
        <!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">
        <head>
        <script>
        print code requirement
        function printpage()
        {
        window.print();
        }
        </script>
        print code requirement


        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>WildFlowers by FCT</title>
        <link href='http://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css'>
        <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
        <style type="text/css">

        #wrapper #header-wrapper #header h1 a strong {
            font-family: Georgia, "Times New Roman", Times, serif;
            size: '100';
            font-size: 40px;
        </body>
        </html>

";
        ?>
  • 写回答

5条回答 默认 最新

  • doubei5114 2013-05-23 07:32
    关注

    You have to remove <?php and ?>. Between these two tags there must be php-code and no html.

    Edit: Maybe no errors are reported, because your server is configured to suppress errors.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向