CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Web 开发 >  PHP

$php_self的问题

楼主xiaoyouqiang(长风大侠)2006-05-03 09:39:03 在 Web 开发 / PHP 提问

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

相关问题

关键词

得分解答快速导航

  • 帖主:xiaoyouqiang

相关链接

  • Web开发类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo