没有完全看明白问题
“但是就是不能显示出来,如果我把'phpinfo.txt’,改成phpinfo.html的话,就可以显示title了。”
什么意思?
你是用输出缓存在做实验?看看有没有数据输出??

解决方案 »

  1.   

    我输出缓存是看看,程序走到了哪步,因为ob_start函数后的echo语句是打不出语句来的,所以为了看程序有没有走到下面,我就用缓存了,看看能不调到html页面,可是虽然程序能走到,但是就是显示不出页面,这段
    <html>
    <head>
    <title>hello&#12539;/title>
    <base href="http://localhost/">
    </head><frameset cols="255,*">
    <frame src="menu.php" name="menu" frameborder="0" marginwidth="4" marginheight="8" scrolling="auto">
    <frame src="top.php" name="content" frameborder="0" marginwidth="4" marginheight="8" scrolling="auto">
    </frameset></html>
    就是显示页面的,但是就是显示不出来,郁闷啊!
      

  2.   

    <title>那一行的</title>没写全?
      

  3.   

    <title>hello</title>我写错了,是这样写的,可是不能显示页面,郁闷,不知道能不能用cygwin来运行,但是在linux下好像运行php可以直接用浏览器来运行,不需要命令。我该怎么办哦!:(
      

  4.   

    $file=fopen('phpinfo.txt','wb');
    你改成这样试试!