basename 返回文件名readdir读取目录opendir打开目录copy 复制文件rename 重命名一个文件或目录rmdir 删除目录mkdir 新建目录touch 创建文件 rename 重命名unlink 删除文件fileowner...
一,PHP时间戳函数获取指定日期的unix时间戳strtotime(”2009-1-22″)示例如下:echostrtotime(”2009-1-22″)结果:1232553600说明:返回2009年1月22日0点0分0秒时间戳二,PHP时间戳函数获取英文文本日期时间示例如下:便于比较,使用date将当时间戳与指定时间戳转换成系统时间(1)打印明...
//获取用户真是地址functionGetIpLookup($ip=''){ $res=@file_get_contents('http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip='.$ip);...
functionget_os(){$agent=$_SERVER['HTTP_USER_AGENT']; $os=false; if(preg_match('/win/i',$agent)&&strpos($agent,'95')) { &nb...
functionmy_get_browser(){ if(empty($_SERVER['HTTP_USER_AGENT'])){ return'robot!'; } if((false==strpos($_SERVER['HTTP_USER_AGENT'],'MSIE'))&&(strpo...