$php_self的问题

xiaoyouqiang 2006-05-03 09:39:03
echo phpinfo();能显示信息为什么 global $PHP_SELF; echo $PHP_SELF;显示不了信息呢,在配置文件已修改过track_vars = On了,我的php还是获得不了表单值,
...全文
236 4 打赏 收藏 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
iasky 2006-12-15
  • 打赏
  • 举报
回复
$_SERVER['PHP_SELF']
PleaseDoTellMeWhy 2006-12-15
  • 打赏
  • 举报
回复
懒呀,就多那么几个字母也不愿意写!
ganr1231 2006-12-15
  • 打赏
  • 举报
回复
注:好象是php4.2以后,偶的机器上是php5,不能确定
ganr1231 2006-12-15
  • 打赏
  • 举报
回复
php.ini里的一段话:
; - register_globals = Off [Security, Performance]
; Global variables are no longer registered for input data (POST, GET, cookies,
; environment and other server variables). Instead of using $foo, you must use
; you can use $_REQUEST["foo"] (includes any variable that arrives through the
; request, namely, POST, GET and cookie variables), or use one of the specific
; $_GET["foo"], $_POST["foo"], $_COOKIE["foo"] or $_FILES["foo"], depending
; on where the input originates. Also, you can look at the
; import_request_variables() function.
; Note that register_globals is going to be depracated (i.e., turned off by
; default) in the next version of PHP, because it often leads to security bugs.
; Read http://php.net/manual/en/security.registerglobals.php for further
; information.

$_SERVER['PHP_SELF']
是你要的值

21,889

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧