PHP输出问题 [英] Problem with PHP output

查看:57
本文介绍了PHP输出问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我有一个html菜单,我重命名为menu.php。然后我下载了一个使用index.php文件的
程序。我做了标准<?php

include(" menu.php"); ?命令,我看到菜单。但是,它在php索引文件中混淆了
。当我去下载文件时,它只是在屏幕上打开

文件而不是显示一个弹出窗口

询问下载文件的放置位置。然后我尝试将

html代码添加到index.php文件中,这也没有用。当我用
取出<?php include(" menu.php"); ?命令脚本工作

完美。然后我尝试了另一个下载脚本,它将菜单放在屏幕上的

,但菜单后面运行的php文件没有居中

看起来很糟糕。有谁知道是什么问题?用我的.htaccess文件来点什么吗?

任何帮助都会受到赞赏。

解决方案

< blockquote> On Sun,2007年7月22日18:25:31 -0700,John

< Jo ********* @nnnnnnnn.nowherewrote:


我也得到了这个。

无法修改标题信息 - 已经发送的标题(输出


John写道:


On Sun,2007年7月22日18:25:31 -0700,John

< Jo ********* @nnnnnnnn.nowherewrote:


我也得到这个。


无法修改标题信息 - 已经发送的标题(输出



对不起,我的水晶球坏了。如果没有看到代码,那就无法确定你需要的数千个错误中的哪一个? />
可能正在制作。


但你可能会尝试搜索错误信息 - 它可能非常好

illuminati如果你仍然无法弄明白,请尝试在这里发布

失败代码。


-

==================

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================


Jerry Stuckle写道:


John写道:


>在Sun,2007年7月22日18:25:31 -0700,John
< Jo ********* @nnnnnnnn.nowherewrote:

我也在这个。

无法修改标题信息 - 已经发送的标题(输出



对不起,我的水晶球坏了。没看到它的代码会是

无法确定你可能会犯下的数千个错误中的哪一个。


但你可能会尝试搜索在错误信息上 - 它可能非常好

照亮。如果你仍然无法弄明白,请尝试在这里发布

失败代码。



我曾经得到很多。对我来说 - 这几乎总是因为我想要设置一个cookie或者在我已经将输出缓冲区发送到客户端之后添加一个HTTP标头。
已经将输出缓冲区发送到客户端。 br />


Hello,
I have an html menu that I renamed menu.php. I then have a download
program which uses an index.php file. I did the standard <?php
include("menu.php"); ?command and I see the menu. However, it messes
up the php index file. When I go to download a file it just opens the
file on the screen for some reason rather than showing a popup window
asking where to put the downloaded file. I then tried to just add the
html code into the index.php file and that didn''t work either. When I
take out the <?php include("menu.php"); ?command the script works
perfect. I then tried another download script and it puts the menu on
the screen, but the php file that runs after the menu is not centered
and looks bad. Does anyone know what the problem could be? Is it
something with my .htaccess file?
Any help would be appreciated.

解决方案

On Sun, 22 Jul 2007 18:25:31 -0700, John
<Jo*********@nnnnnnnnn.nowherewrote:

I''m also getting this.
Cannot modify header information - headers already sent by (output


John wrote:

On Sun, 22 Jul 2007 18:25:31 -0700, John
<Jo*********@nnnnnnnnn.nowherewrote:

I''m also getting this.
Cannot modify header information - headers already sent by (output

Sorry, my crystal ball is broken. Without seeing the code it would be
impossible to determine which of the thousands of possible errors you
could be making.

But you might try searching on the error message - it could be very
illuminating. And if you still can''t figure it out, try posting the
failing code here.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


Jerry Stuckle wrote:

John wrote:

>On Sun, 22 Jul 2007 18:25:31 -0700, John
<Jo*********@nnnnnnnnn.nowherewrote:

I''m also getting this.
Cannot modify header information - headers already sent by (output


Sorry, my crystal ball is broken. Without seeing the code it would be
impossible to determine which of the thousands of possible errors you
could be making.

But you might try searching on the error message - it could be very
illuminating. And if you still can''t figure it out, try posting the
failing code here.

I used to get that one a LOT. For me - it was almost always because I
was trying to set a cookie or otherwise add an HTTP header AFTER I had
already sent the output buffer to the client.


这篇关于PHP输出问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆