02 2016 档案

摘要:在了解这个函数之前先来看另一个函数:__autoload。 一、__autoload 这是一个自动加载函数,在PHP5中,当我们实例化一个未定义的类时,就会触发此函数。看下面例子: printit.class.php <?php class PRINTIT { function doPrint() 阅读全文
posted @ 2016-02-28 17:36 agang_19 阅读(218) 评论(0) 推荐(0) 编辑
摘要:Discuz!X会自带Debug模式,主要是用于排查性能问题。垃圾站建议当如果您的站点调试完之后,一定要把debug模式关闭,以免其他用户会获取到一些敏感信息。在调试过程中,config文件配置的参数请只告知调试人员(比如官方人员),对其他人员尤其是会员请保密。 开启 debug 模式的步骤: 1、 阅读全文
posted @ 2016-02-26 16:26 agang_19 阅读(561) 评论(0) 推荐(0) 编辑
摘要: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 阅读(249) 评论(0) 推荐(0) 编辑
摘要:<?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 阅读(407) 评论(0) 推荐(0) 编辑
摘要:get:是用来取得数据。其要传递过的信息是拼在url后面,因为其功能使然,有长度的限制 post:是用来上传数据。要上传的数据放在request的head里。没有长度限制。主要是用于增加操作 put:也是用来上传数据。但是一般是用在具体的资源上。主要用于修改操作 delete:用来删除某一具体的资源 阅读全文
posted @ 2016-02-23 17:10 agang_19 阅读(4250) 评论(0) 推荐(0) 编辑
摘要:客户端 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 阅读(684) 评论(0) 推荐(0) 编辑
摘要:第一种 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 阅读(143) 评论(0) 推荐(0) 编辑
摘要:$this->app->singleton('ReportServices', function () { return new \App\Services\ReportServices(); }); 以后在其他class里我可以用 app('ReportServices')->xxxxxx();去 阅读全文
posted @ 2016-02-22 15:24 agang_19 阅读(639) 评论(0) 推荐(0) 编辑
摘要:window7主题破解与恢复 1 2 3 分步阅读 windows7主题破解后可以换自己喜欢的主题,但也有一些弊端。这里帮助打家破解与恢复。 工具/原料 UniversalThemePatcher.exe windows7主题文件 方法/步骤 1 先到链接:http://pan.baidu.com/ 阅读全文
posted @ 2016-02-08 14:34 agang_19 阅读(1158) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示