首页 > explode

php中文件目录操作类

下面这个文件操作类可以建立目录,删除目录,删除文件等一系列你能操作操作的功能,它都可以实现有需要的朋友可以参考一下  代码如下 复制代码 <?/*** 操纵文件类** 例子:* FileUtil::createDir('a/1/2/3');                    测试建立文件夹 建一个a/1/2/3文件夹* FileUti...
阅读全文

php 获得用户的真实IP地址

一个段经典的代码可以用来获取用户的真实IP地址,包括可以是内网或是外网,有需要的朋友可以参考一下。  代码如下 复制代码 /** * 获得用户的真实IP地址 * * @return  string */function real_ip(){    static $realip = NULL;     if ($realip !== NULL){      ...
阅读全文

经典php批量上传源码

html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
function Check(){
 //alert('dddd');
 for(i=1; i<9; i++){
  if(document.getElementById('v'+i).value == ''){
   document.getElementById('v'+i).name = 'uu';
  }
 }
}

阅读全文