摘要:        
Route::get('/test-sql', function(){ DB::enableQueryLog(); $user = App\User::first(); return DB::getQueryLog();});    
阅读全文
posted @ 2015-10-22 11:43
jzfan
阅读(1367)
推荐(0)
 
		
    
        
        
摘要:        
先安装nginx的yum源http://nginx.org/en/linux_packages.html#stable找到链接,安装:rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el...    
阅读全文
posted @ 2015-10-18 11:39
jzfan
阅读(145)
推荐(0)
 
		
    
        
        
摘要:        
server { server_name domain.com www.domain.com *.domain.com ; set $subdomain ''; if ...    
阅读全文
posted @ 2015-10-17 11:18
jzfan
阅读(563)
推荐(0)
 
		
    
        
        
摘要:        
http://www.winginx.com/en/htaccess    
阅读全文
posted @ 2015-10-16 15:14
jzfan
阅读(324)
推荐(0)
 
		
    
        
        
摘要:        
laravel 默认用的登录密码加密方式是:$password = Hash::make('password');修改密码加密方式为:$password = md5('password'.'salt');打开/vender/laravel/framework/src/illuminate/Auth,...    
阅读全文
posted @ 2015-10-15 22:37
jzfan
阅读(1020)
推荐(0)
            
        
        
摘要:        
查找重复数据select id, name, memofrom Awhere id in (select id from A group by id having count(1) >= 2)mysql 当前时间SELECT NOW(); //2015-10-27 16:43:45UNIX时间...    
阅读全文
posted @ 2015-10-15 16:58
jzfan
阅读(264)
推荐(0)
            
        
        
摘要:        
supesite有人看到的是强大的功能,我看到的是坑爷的一些用法,第一次看到block,我晕了。对于参数一头雾水,下面收集了一些,备用吧。supesite标签调用参数详解 参数:blocktype模块名称,系统有一下模块blocktype=category 系统分类模块blocktype=space...    
阅读全文
posted @ 2015-10-15 15:16
jzfan
阅读(523)
推荐(0)
 
		
    
        
        
摘要:        
function test(){ $.ajax({ //提交数据的类型 POST GET type:"POST", //提交的网址 url:"testLogin.aspx", //提交的数据 data:{Name:"sanmao",Pass...    
阅读全文
posted @ 2015-10-13 21:55
jzfan
阅读(157)
推荐(0)
            
        
        
摘要:        
1.创建实例与取结果集query("SELECTaa,bb,cc FROM foo");while ($arr = $rs->fetch()) { //...}?>2.取一个字段结果query("SELECT COUNT(*) FROM foo");$col = $rs->fetchCol...    
阅读全文
posted @ 2015-10-13 15:37
jzfan
阅读(172)
推荐(0)
 
		
    
        
        
摘要:        
1.routerRoute::get('product', function(){ $products = App\Product::paginate(10); return view('product.index', compact('products'));});Route::get...    
阅读全文
posted @ 2015-10-05 17:09
jzfan
阅读(1040)
推荐(0)