[PHP 5 XP IE6]标题(“test”);不显示

问题描述:



我正在尝试一个简单的form.html来调用.html脚本开始




<?php

header(这是一个测试);

?>


什么时候我点击链接,我得到空白页。


我尝试了.html和.php的每个组合作为扩展,没有用。


我在IE6中检查了>工具>配置>高级菜单,我找不到

可能是一些过滤器,以防止标题显示。


********************************************* *** ***********

我毫无保留地说,我们没有得到更高的优惠

这是一个女孩沃克太太这是一个女孩

*********************************** *************** ***********

Hi,
I''m trying a simple form.html that call a .html script that begins
with:

<?php
header("This is a test");
?>

When I click on the link, I get blank page.

I tried every combination of .html and .php as extensions, none works.

I checked the >Tools>Config>advanced menus in IE6, I can''t find where
could be some filter to prevent the headers from displaying.

************************************************** ***********
I say without reservation, we ain''t getting no hi-higher
It''s a girl Mrs Walker it''s a girl
************************************************** ***********



universalbitmapper写道:

universalbitmapper wrote:

我正在尝试一个简单的form.html来调用一个.html脚本开始


<?php
标题(这是测试);
?>

我尝试了.html和.php的每个组合作为扩展,没有用。

我查了一下>工具>配置> IE6中的高级菜单,我无法找到哪些过滤器可以防止标题显示。

********* ***************************************** ********* **
我毫无保留地说,我们没有得到更高的更高
这是一个女孩沃克太太这是一个女孩
********* ***************************************** ********* **
Hi,
I''m trying a simple form.html that call a .html script that begins
with:

<?php
header("This is a test");
?>

When I click on the link, I get blank page.

I tried every combination of .html and .php as extensions, none works.

I checked the >Tools>Config>advanced menus in IE6, I can''t find where
could be some filter to prevent the headers from displaying.

************************************************** ***********
I say without reservation, we ain''t getting no hi-higher
It''s a girl Mrs Walker it''s a girl
************************************************** ***********




你想做什么?只需输出这是一个测试即可。 ?


如果您希望将文件解析为php,请为其指定.php扩展名。如果您希望页面显示这是一个测试,那么

那么它应该只是

这个:


<?php

echo这是一个测试。;

?>



What are you trying to do? Just make it output "This is a test" ?

If you want the file to be parsed as php, give it a .php extension. If
you want the page to display "This is a test" then it should just be
this:

<?php
echo "This is a test.";
?>


universalbitmapper写道:
universalbitmapper wrote:

我是'我正在尝试一个简单的form.html来调用.html脚本开始
<?php
标题(这是一个测试);
?>

当我点击链接时,我得到空白页。

我尝试了.html和.php的每个组合作为扩展,没有用。
Hi,
I''m trying a simple form.html that call a .html script that begins
with:

<?php
header("This is a test");
?>

When I click on the link, I get blank page.

I tried every combination of .html and .php as extensions, none works.



嗯....稍微详细说明其他回复,标题(测试);将

输出测试进入http标头。标题是告诉

浏览器它将要接收文件或网页等,并且对于所有意图和目的而言是b / b
不可见最终用户。作为一个粗略的

规则,你不需要使用header()函数,直到你用PHP推进你的b / b
,可能除了header(")地点:

anotherpage.htm");将浏览器重定向到另一个页面的内容。

如果要向用户(浏览器)显示文本,请使用echoTest;


祝你好运。


Hmm.... To elaborate on the other reply slightly, header("Test"); will
output "Test" into the http headers. The headers are the bit that tell
the browser that it''s about to receive a file or a web page etc and is
to all intents and purposes, invisisible to the end user. As a rough
rule, you wont need to use the header() function until you''re fairly
advanced with PHP, with possibly the exception of header("Location:
anotherpage.htm"); that which redirects the browser to anotherpage.
If you want to display text to the user (browser) then use echo "Test";

Good luck.


universalbitmapper写道:
universalbitmapper wrote:

我正在尝试一个简单的form.html调用一个.html脚本开始


<?php
标题(这是测试);
?>

我尝试了.html和.php的每个组合作为扩展,没有用。

我查了一下>工具>配置> IE6中的高级菜单,我无法找到哪些过滤器可以防止标题显示。

********* ***************************************** ********* **
我毫无保留地说,我们没有得到更高的更高
这是一个女孩沃克太太这是一个女孩
********* ***************************************** **** *******
Hi,
I''m trying a simple form.html that call a .html script that begins
with:

<?php
header("This is a test");
?>

When I click on the link, I get blank page.

I tried every combination of .html and .php as extensions, none works.

I checked the >Tools>Config>advanced menus in IE6, I can''t find where
could be some filter to prevent the headers from displaying.

************************************************** ***********
I say without reservation, we ain''t getting no hi-higher
It''s a girl Mrs Walker it''s a girl
************************************************** ***********



两件事:


1.''一个简单的form.html调用.html脚本' '。

难道不应该是.php脚本吗?


2.''标题(这是一个测试);''

试试echo这是一个测试;


-david-


Two things:

1. ''a simple form.html that call a .html script''.
Shouldn''t that be a .php script?

2. ''header("This is a test");''
Try echo "This is a test";

-david-