无法传递查询字符串(GET)变量 [英] cannot pass query string (GET) vars
问题描述
我有一个非常奇怪的问题,昨天早上工作后出现了
昨天很好......
这里非常简单脚本:
1:<?php
2:$ test = $ _GET [''test''];
3:echoHello 。 $ test。 < p>";
4:?>
使用此网址调用
:
http://216.244.107.150/info.php?test=me <代码应该输出
代码:
你好我
但服务器只是挂起,直到我的浏览器超时。如果我
删除?test = me从URL,脚本工作得很好(输出:
" Hello"),但由于某种原因我的所有PHP脚本现在挂起,当我尝试
并通过URL上的名称/对。
任何想法?我是PHP的新手,可能会以某种方式更改IIS6的配置
,或者只是以其他方式破坏它。任何建议都是赞赏。
Beekay
< blockquote> test =
_GET [''test''];
3:echo" Hello" 。
测试。 < p>";
4:?>
使用此网址调用
:
http://216.244.107.150/info.php?test=me <代码应该输出
代码:
你好我
但服务器只是挂起,直到我的浏览器超时。如果我
删除?test = me从URL,脚本工作得很好(输出:
" Hello"),但由于某种原因我的所有PHP脚本现在挂起,当我尝试
并通过URL上的名称/对。
任何想法?我是PHP的新手,可能会以某种方式更改IIS6的配置
,或者只是以其他方式破坏它。任何建议都是赞赏。
Beekay
I''m having a very odd issue, that arose this morning after working
fine yesterday...
here''s a very simple script:
1: <?php
2: $test = $_GET[''test''];
3: echo "Hello" . $test . "<p>";
4: ?>
when called using this URL:
http://216.244.107.150/info.php?test=me
the code should just output:
Hello me
but instead the server just hangs, until my browser timesout. If I
remove "?test=me" from the URL, the script works just fine (output:
"Hello "), but for some reason all my PHP scripts now hang when I try
and pass a name/pair on the URL.
Any ideas?? I''m very new to PHP and probably change the config of IIS6
somehow, or just broken it in some other way. Any advice would be
appreciated.
Beekay
test =
_GET[''test''];
3: echo "Hello" .
test . "<p>";
4: ?>
when called using this URL:
http://216.244.107.150/info.php?test=me
the code should just output:
Hello me
but instead the server just hangs, until my browser timesout. If I
remove "?test=me" from the URL, the script works just fine (output:
"Hello "), but for some reason all my PHP scripts now hang when I try
and pass a name/pair on the URL.
Any ideas?? I''m very new to PHP and probably change the config of IIS6
somehow, or just broken it in some other way. Any advice would be
appreciated.
Beekay
这篇关于无法传递查询字符串(GET)变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!