会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
agang_19
博客园
首页
新随笔
联系
管理
订阅
02 2016 档案
spl_autoload_register(转载 http://blog.csdn.net/panpan639944806/article/details/23192267)
摘要:在了解这个函数之前先来看另一个函数:__autoload。 一、__autoload 这是一个自动加载函数,在PHP5中,当我们实例化一个未定义的类时,就会触发此函数。看下面例子: printit.class.php <?php class PRINTIT { function doPrint()
阅读全文
posted @
2016-02-28 17:36
agang_19
阅读(224)
评论(0)
推荐(0)
discuz debug下载地址
摘要:Discuz!X会自带Debug模式,主要是用于排查性能问题。垃圾站建议当如果您的站点调试完之后,一定要把debug模式关闭,以免其他用户会获取到一些敏感信息。在调试过程中,config文件配置的参数请只告知调试人员(比如官方人员),对其他人员尤其是会员请保密。 开启 debug 模式的步骤: 1、
阅读全文
posted @
2016-02-26 16:26
agang_19
阅读(571)
评论(0)
推荐(0)
xphrof出现502问题
摘要:This is an xhprof bug and not a devel bug, but I thought I'd throw the workaround up here in case people run into this upgrading to php 5.5 like I did
阅读全文
posted @
2016-02-26 15:36
agang_19
阅读(254)
评论(0)
推荐(0)
php处理restful请求的路由(转载 http://www.jb51.net/article/47333.htm)
摘要:<?php class Router { // 路由表 private $routers = array( array("name"=>"userlist", "pattern"=>"get /user", "action"=>"User#get"), array("name"=>"userinfo
阅读全文
posted @
2016-02-26 11:00
agang_19
阅读(416)
评论(0)
推荐(0)
php如何发起POST DELETE GET POST 请求
摘要:get:是用来取得数据。其要传递过的信息是拼在url后面,因为其功能使然,有长度的限制 post:是用来上传数据。要上传的数据放在request的head里。没有长度限制。主要是用于增加操作 put:也是用来上传数据。但是一般是用在具体的资源上。主要用于修改操作 delete:用来删除某一具体的资源
阅读全文
posted @
2016-02-23 17:10
agang_19
阅读(4263)
评论(0)
推荐(0)
PHP curl 实现RESTful PUT DELETE 实例
摘要:客户端 client.php <?php //PUT $curl_handle = curl_init (); // Set default options. curl_setopt ( $curl_handle, CURLOPT_URL, 'http://my.focus.cn/test/sock
阅读全文
posted @
2016-02-23 17:06
agang_19
阅读(690)
评论(0)
推荐(0)
call_user_func_array
摘要:第一种 class test{ public static function output($msg){ echo $msg; }}call_user_func_array(array('test', 'output'), array('test')); 第二种 <?phpfunction outp
阅读全文
posted @
2016-02-23 14:50
agang_19
阅读(148)
评论(0)
推荐(0)
Laravel 文档中的 Service Providers
摘要:$this->app->singleton('ReportServices', function () { return new \App\Services\ReportServices(); }); 以后在其他class里我可以用 app('ReportServices')->xxxxxx();去
阅读全文
posted @
2016-02-22 15:24
agang_19
阅读(647)
评论(0)
推荐(0)
window7主题破解与恢复(复制)
摘要:window7主题破解与恢复 1 2 3 分步阅读 windows7主题破解后可以换自己喜欢的主题,但也有一些弊端。这里帮助打家破解与恢复。 工具/原料 UniversalThemePatcher.exe windows7主题文件 方法/步骤 1 先到链接:http://pan.baidu.com/
阅读全文
posted @
2016-02-08 14:34
agang_19
阅读(1234)
评论(0)
推荐(0)
公告