$php_self的问题
echo phpinfo();能显示信息为什么 global $PHP_SELF; echo $PHP_SELF;显示不了信息呢,在配置文件已修改过track_vars = On了,我的php还是获得不了表单值, 问题点数:20、回复次数:4Top
1 楼ganr1231()回复于 2006-12-15 16:19:11 得分 0
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']
是你要的值Top
2 楼ganr1231()回复于 2006-12-15 16:23:36 得分 0
注:好象是php4.2以后,偶的机器上是php5,不能确定Top
3 楼PleaseDoTellMeWhy(Allah bless you!)回复于 2006-12-15 16:24:33 得分 0
懒呀,就多那么几个字母也不愿意写!Top
4 楼iasky(iasky)回复于 2006-12-15 16:25:43 得分 0
$_SERVER['PHP_SELF']Top




