php get_magic_quotes_gpc()

1 <?php
2 header("Content-Type:text/html;charset = utf-8");
3 /**
4 * get_magic_quotes_gpc() 用来获取php环境配置变量magic_quotes_gpc的值
5 * 0-关闭,1-打开
6 * 当magic_quotes_gpc打开时,所有的',",\,和 空字符自动进行转义
7 */
8 echo get_magic_quotes_gpc();
9 ?>

posted on 2011-11-11 14:36  xjjrain2011  阅读(84)  评论(0)    收藏  举报

导航