<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_AnyKoro_分类_PHP</title><id>http://feed.cnblogs.com/blog/u/53802/category/333686/rss</id><updated>2012-05-27T23:43:08Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/category/333686.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/53802/category/333686/rss"/><entry><id>http://www.cnblogs.com/JosephLiu/archive/2012/01/18/2325414.html</id><title type="text">[转]PHP速度大放送</title><summary type="text">http://blog.csdn.net/painsonline/article/details/7207839之前我们曾深入的探讨过PHP缓存技术，其中主要提到了数据缓存。数据缓存主要是指数据库查询缓存，每次访问页面的时候,都会先检测相应的缓存数据是否存在，如果不存在，就连接数据库，得到数据， 并把查询结果序列化后保存到文件中，以后同样的查询结果就直接从缓存表或文件中获得。 用的最广的例子看Discuz的搜索功能，把结果ID缓存到一个表中，下次搜索相同关键字时先搜索缓存表。 举个常用的方法，多表关联的时候，把附表中的内容生成数组保存到主表的一个字段中，需要的时候数组分解一下，这样的好处是..</summary><published>2012-01-18T04:45:00Z</published><updated>2012-01-18T04:45:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2012/01/18/2325414.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2012/01/18/2325414.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2012/01/03/2311121.html</id><title type="text">如何将自己的站点与Ucenter整合——详解</title><summary type="text">UCenter整合 详细教程康盛的Ucenter产品非常的强大。即便不使用也有很好的学习价值。在这里我们只说，如何将自己的网站和其他康盛的站点互通，当然是使用ucenter为了，让两个应用之间可以互通（比如，自己的站点和uchome），我们需要先做一件事情，将ucenter安装包中的UCenter_1.6.0_SC_UTF8\advanced\examples下的api文件夹，config.inc.php文件和uc_client文件夹（这个在上一级目录），放到自己站点的一个目录下。一般我们可以将他们都统一放在一个目录中，这里我们取名为ucclient，目录结构形如接下来我们所说这个三个文件分别</summary><published>2012-01-03T09:13:00Z</published><updated>2012-01-03T09:13:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2012/01/03/2311121.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2012/01/03/2311121.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2012/01/01/2309434.html</id><title type="text">使用SublimeText2搭建PHP IDE，window环境</title><summary type="text">1、安装Git（可选）这个非常简单。可访问Git。2、Zen CodingZen Coding是必装的。用它写html实在是非常方便。具体的使用方法可到此处下载首先点击下载ZenCoding，注意要下载的是针对sublime2的版本。3、Sublime Lint这个是用来检查有没有PHP语法错误的。但是windows，总是会卡，不知道为什么可以从GitHub安装。也可以下载安装包，解压。地址是：https://github.com/lunixbochs/sublimelintGit获取方式：git clone git://github.com/lunixbochs/sublimelint.gi</summary><published>2012-01-01T05:52:00Z</published><updated>2012-01-01T05:52:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2012/01/01/2309434.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2012/01/01/2309434.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/12/31/2308522.html</id><title type="text">Yii中延迟加载(autoload)使用方法</title><summary type="text">代写</summary><published>2011-12-31T02:57:00Z</published><updated>2011-12-31T02:57:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/12/31/2308522.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/12/31/2308522.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/12/26/2301771.html</id><title type="text">Yii的路由机制分析</title><summary type="text">在Yii中，route是一个非常重要的步骤。通过route我们可以定制更加个性互的Url。同时很多时候，如果route规则复杂也会容易出问题。所以，研究清楚route的机制是十分重要的。在这里希望你能先参看Yii Framework的process flow分析首先，让我们先看一段代码，此段代码出现在CWebApplication中， 1 /** 2 * @var array the configuration specifying a controller which should handle 3 * all user requests. This is mainly ...</summary><published>2011-12-26T03:28:00Z</published><updated>2011-12-26T03:28:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/12/26/2301771.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/12/26/2301771.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/12/19/2293776.html</id><title type="text">Yii中的核心CComponent类详解</title><summary type="text">CComponet类是Yii中影响最广的类。不仅Application继承自它，Event，Behavior，Action，Controller，Widget总之很多都是继承自它。在这里我们不一一列举，到底有哪些类是继承字CComponent类的。我们在这里主要是从现实意义上来剖析CComponet的作用，角色。当读完本篇后，你应该对继承自Yii的CComponent的类有什么样的属性，什么样的特性和作用，了然于胸。CComponent类是一个很庞大的类，我们就按照由粗到细的过程来讲解。让我们先直观感受下CComponet类是长什么样子的。下图为CComponet的类视图在解释这个类前，我们先</summary><published>2011-12-19T11:37:00Z</published><updated>2011-12-19T11:37:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/12/19/2293776.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/12/19/2293776.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/12/19/2293324.html</id><title type="text">Yii中Action详解</title><summary type="text">在此篇中，主要介绍Yii是如何看待Action的。那么在Controller中又是如何如何处理Action的，Action又有哪些需要注意的特性呢？带着这些问题，我们来看看下面的代码，里面会涉及到Yii Framework的process flow分析文中提到的一些基础，如果没有看过，建议先阅读之。首先先看段代码，此段代码位于CController中 1 public function createAction($actionID) 2 { 3 if($actionID==='') 4 $actionID=$this-&gt;defaultAc...</summary><published>2011-12-19T06:12:00Z</published><updated>2011-12-19T06:12:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/12/19/2293324.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/12/19/2293324.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/12/19/2292852.html</id><title type="text">Yii Framework的process flow分析</title><summary type="text">本篇主要讲述yii是如何处理一个web请求的，其中包括了route，filter，controller，action等等。他是如何安排他们各自的顺序，同时又预留了哪些事件函数，以让开发者更好的控制。本文需要一定的编程基础和对yii有一定熟悉，属于进阶型的。另外，由于程序庞大，比较复杂，请千万看准，哪段程序是在哪个类中的。Ready! Start...首先要说的肯定是index.php，他作为整个application的入口文件，起到了初始化各种变量的作用，接下来看代码，在这里我们约定下，这里所有的代码都一般情况下的 1 &lt;?php 2 3 // change the following </summary><published>2011-12-18T16:53:00Z</published><updated>2011-12-18T16:53:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/12/19/2292852.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/12/19/2292852.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/12/12/2285078.html</id><title type="text">Yii中的Event和Behaviour理解</title><summary type="text">Event Event其实是个既复杂又简单的问题，因为里面总是有很多概念容易交织，在理解Event前，我们首先要明白Event的概念。Event中往往有两个角色，一个是Event，一个是Event Handler。为什么需要两个？原因很容易理解，Event只是说明这件事情发生了，但是没有说怎么处理。这部分处理的工作当然是留给了Event Handler了。我在这里主要从和现实世界的相似度上说，不涉及设计模式上的讲解。有意向的朋友可以自己去参看相关的模式，...</summary><published>2011-12-12T09:13:00Z</published><updated>2011-12-12T09:13:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/12/12/2285078.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/12/12/2285078.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/28/2266726.html</id><title type="text">【转】Web app设计浅谈http://ucdchina.com/snap/10523</title><summary type="text">HTML5技术的强势发展，为互联网带来的最大改变就是： web从“已死”的预言中回过头来给Native app一记沉重的回马枪，web app成为举世瞩目的明星开始走在各大公司研发的时刻表中。Google 、微软、苹果三大巨头紧锣密鼓地在web app的研发产品领域圈地设岗，并试图建立以自己为中心的”云“服务平台，企图在web app时代到来的时候充当霸主。本文将围绕web app的设计，与大家讨论几点设计技巧。Web app是一种通过网络（如互联网或内联网）访问的应用程序；也可以指计算机软件承载在浏览器支持环境下或使用浏览器支持语言（如JavaScript）并依赖于web 浏览器来渲染的应用</summary><published>2011-11-28T13:20:00Z</published><updated>2011-11-28T13:20:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/28/2266726.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/28/2266726.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/28/2266635.html</id><title type="text">整合了大量的社区登录的接口应用</title><summary type="text">网址：WWW.UYAN.CC东西不错，标记下</summary><published>2011-11-28T11:44:00Z</published><updated>2011-11-28T11:44:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/28/2266635.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/28/2266635.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/19/2254872.html</id><title type="text">面向对象的Javascript和Prototype的理解</title><summary type="text">JavaScript是一个函数式语言。在其中并没有class的概念。这个时候你可能会有疑问，没有class的概念又怎么实现面向对象的呢？在JavaScript中式基于prototype的，中文意思是原型。在这里prototype更类似与c#或php中继承的作用。具体怎么理解看代码这里我以php语言为比较对象首先看JavaScript代码//基函数，这里的原型不是prototype，只是基类的感觉//这里使用namealias，是因为function自己有name属性，这里就是Foofunction Foo(){ this.namealias="Fooooo"; alert(</summary><published>2011-11-19T02:08:00Z</published><updated>2011-11-19T02:08:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/19/2254872.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/19/2254872.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/18/2254204.html</id><title type="text">URLENCODING,ASCII,UNICODE,UTF8,GBK</title><summary type="text">对于标题中所说的不同编码方式，我们下面逐一剖析。1、URL ENCODING URLs只可以使用ASCII字符集在Internet上传输。由于URLs经常会含有ASCII集之外的字符，此时URL就不得不将这些非ASCII的字符转换成有效的ASCII字符。另外，URL encoding还会将不安全的ASCII字符使用以“%”开头后面紧跟两个十六进制数的形式，进行替换。注意：URLs是不能包含空格的。URL encoding一般会使用“+”号去替换空格。当然，也可以使用%20，这两种其实是一样的，只是一般前者是使用如下代码会得到&lt;form name="input" tar</summary><published>2011-11-18T07:17:00Z</published><updated>2011-11-18T07:17:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/18/2254204.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/18/2254204.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/17/2252446.html</id><title type="text">Solr PHP support</title><summary type="text">Solr PHP supportContentsSolr PHP supportsolr-php-clientApache Solr PHP ExtensionSolariumSolr's PHP response formatSolr's PHP Serialized response formatHistoricalsolr-php-clientA 3rd party PHP library for indexing and searching documents within an Apache Solr installation.Zip / Tarballs can b</summary><published>2011-11-17T03:39:00Z</published><updated>2011-11-17T03:39:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/17/2252446.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/17/2252446.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/12/2246325.html</id><title type="text">PHP中的输出控制总结</title><summary type="text">Output Control（输出控制）简介 当通过脚本发送输出时，可以使用输出控制函数进行控制。在一些不同的场合很有用，在你的脚本已开始输出数据后，如果你需要发送headers到浏览器，这时会更加有用。输出控制函数不会影响通过header()或setcookie()发送的headers，只会影响像echo()，还有在PHP代码块之间的数据。正常来说，如果不适用输出缓存，当出现HTML标签，echo时，都是即时向客户端发送的。这样在使用header(),setcookie()等函数时，就容易出现问题。但是，你可以通过使用输出缓存去解决这个问题。因为当启用输出缓存后，你所有发送给浏览器的输出都会</summary><published>2011-11-12T03:47:00Z</published><updated>2011-11-12T03:47:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/12/2246325.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/12/2246325.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/11/2245715.html</id><title type="text">Distributed Systems Tutorial</title><summary type="text">一篇很不错的E文，文法简单，还涉及不少专业词汇。不错。http://techportal.ibuildings.com/2011/07/01/dpc11-distributed-systems-tutorial/For the morning of tutorial day, I chose to attend Think like an ant, distribute the workload, given by Helgi Þormar Þorbjörnsson. Helgi is a former Ibuildings colleague and now a</summary><published>2011-11-11T07:05:00Z</published><updated>2011-11-11T07:05:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/11/2245715.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/11/2245715.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/11/2245487.html</id><title type="text">PHP中的源代码签名（PHP源码学习快速方法）</title><summary type="text">E文地址：http://www.codediesel.com/php/source-code-signatures-in-php/这篇文章是基于Ward Cunningham的名为Signature Survey: A Method for Browsing Unfamiliar Code 的文章的。Ward建议，当学习新的、不熟悉的源码时，对代码结构获取直观的感受是很重要的。Ward建议了一种方法，通过从每个源文件中逐行获取标点进行总结。他称此为文件签名。这将会帮助开发者考量代码基础的复杂性。例如，如果我们只考虑使用'{}'和';'——PHP编程中的公共标点元</summary><published>2011-11-11T03:46:00Z</published><updated>2011-11-11T03:46:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/11/2245487.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/11/2245487.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/11/2245300.html</id><title type="text">PHP中array_map的使用</title><summary type="text">先看语法array array_map ( callback $callback , array $arr1 [, array $... ] )说明：array_map() 返回一个array，该数组包含所有arr1中被$callback逐个处理过的元素。callback函数的参数的个数，应当和传入array_map()的参数个数相匹配。其实array_map是中高阶函数，（高阶函数为使用其他函数作为参数的函数），并且该高阶函数又隐式得进行了循环。参数callback每个array中的每行都会运行的回调函数.arr1交给回调函数运行处理的数组array数组形式的变量列表参数，并会传入callb</summary><published>2011-11-11T01:28:00Z</published><updated>2011-11-11T01:28:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/11/2245300.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/11/2245300.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/09/2243191.html</id><title type="text">PHP中的并行处理（简）</title><summary type="text">针对多核的cpu泛滥的今天，如何使用好这些CPU资源成了重要的话题。于是异步和并行便开始了大行其道。在PHP中也有异步或并行编程的概念。接下来让我们看具体的例子。并行处理现在我们需要跑两个任务，分别为job1.php和job2.phpjob1.php的代码如下：$jobname = 'job1';set_time_limit(0);$secs = 30;while ($secs) { echo 'current job is'.$jobname,'::',$secs,"\n"; flush(); @ob_flush(); ##</summary><published>2011-11-09T08:55:00Z</published><updated>2011-11-09T08:55:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/09/2243191.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/09/2243191.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/09/2243076.html</id><title type="text">[转]PHP fopen,popen,fsocketopen详细说明及其相关实例</title><summary type="text">fopen (PHP 3, PHP 4, PHP 5)fopen -- 打开文件或者URLfopen ( string filename, string mode [, bool use_include_path [, resource zcontext]] )fopen() 将 filename 指定的名字资源绑定到一个流上。如果 filename 是 "scheme://..." 的格式，则被当成一个 URL，PHP 将搜索协议处理器（也被称为封装协议）来处理此模式。如果该协议尚未注册封装协议，PHP 将发出一条消息来帮助检查脚本中潜在的问题并将 filename 当成</summary><published>2011-11-09T08:38:00Z</published><updated>2011-11-09T08:38:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/09/2243076.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/09/2243076.html"/><content type="html"/></entry></feed>
