摘要:        
截取文件后缀: $slen = strlen($suffix); substr($this->uri_string, -$slen) === $suffix 原理:截取倒数多少长度字符 判断多维数组变量是否存在: isset($this->config[$index], $this->config[$index][$item]) 打开文件,即创建文件 'a'写入方式打开,将文件...    阅读全文
posted @ 2015-01-24 22:07
yo胡yo
阅读(153)
评论(0)
推荐(0)
        
            
        
        
摘要:        
$value) { $config[$key] = $value; } return $config;
} /** * 加载框架/应用类库 */
function &load_class($class, $directory = 'libraries', $param = NULL)
{ static $_classes = array();...    阅读全文
posted @ 2015-01-24 20:02
yo胡yo
阅读(444)
评论(0)
推荐(0)
        
            
        
        
摘要:        
php$ip = '192.168.6.1';$mask = '255.255.2.0';$sub_net = array();//子网$ip_explode = explode('.', $ip);$mask_explode = explode('.', $mask);foreach ($ip_e...    阅读全文
posted @ 2015-01-24 18:23
yo胡yo
阅读(878)
评论(0)
推荐(0)
        
            
        
        
摘要:        
截取文件后缀:$slen = strlen($suffix);substr($this->uri_string, -$slen) === $suffix原理:截取倒数多少长度字符判断多维数组变量是否存在:isset($this->config[$index], $this->config[$inde...    阅读全文
posted @ 2015-01-24 15:14
yo胡yo
阅读(201)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1.数据库连接,需要连接没有数据表前缀 如下,第二个参数必须为null,我之前写的是’’,结果给我默认加了前缀 $User = M('User',Null,'DB_CONFIG2'); 2.AJAX获取url上pathinfo参数 $this->_request(paramname);    阅读全文
posted @ 2015-01-24 15:13
yo胡yo
阅读(153)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号