PHP内置函数
date_default_timezone_set('prc') PRC->people's republic of China 设置默认时区为中华人民共和国
get_magic_quotes_gpc() 设置是否自动为GPC(get,post,cookie)传来的数据中的\'\"\\加上反斜
线。可以用get_magic_quotes_gpc()检测系统设置。如果没有打开这项设置,可以使用
addslashes()函数添加,它的功能就是给数据库查询语句等的需要在某些字符前加上了反
斜线。这些字符是单引号(\')、双引号(\")、反斜线(\\)与 NUL(NULL 字符)。
array_map()函数返回用户自定义函数作用后的数组如:
function stripslashes_deep($value)
{
$value=array_map('stripslashes_deep',$value);
}
$request=array_map('stripslashes_deep',$_REQUEST);
define('conf_path',value); //定义页面的常量