<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[linuxの飘扬]]></title> 
<link>https://www.linuxfly.org/index.php</link> 
<description><![CDATA[Power by www.linuxfly.org]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[linuxの飘扬]]></copyright>
<item>
<link>https://www.linuxfly.org/post/693/</link>
<title><![CDATA[[原]Bo-Blog 2.1.1 与SyntaxHighlighter 插件中HTML冲突问题]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Php]]></category>
<pubDate>Mon, 03 Jun 2013 04:39:58 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/693/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;前两天在写<a href="http://www.linuxfly.org/post/692/" target="_blank">[原]Python 框架TurboGears 2 入门文档《Wiki Tutorial》翻译校正</a>一文时，发现若在代码段【codes】中使用html 标记，会出现代码最后出现一些垃圾标记。经排查，原来是Bo-Blog 2.1.1 与SyntaxHighlighter 插件中HTML部分冲突的问题。在修改Bo-Blog 的代码后，问题解决。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/boblog/" rel="tag">boblog</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/624/</link>
<title><![CDATA[[转]Better PHP Practices]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Php]]></category>
<pubDate>Thu, 15 Sep 2011 04:12:05 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/624/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;Whitepaper called Better PHP Practices. It focuses on on security measures and implementations to enhance your code.<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/php/" rel="tag">php</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/617/</link>
<title><![CDATA[[原]PHP设计模式——策略模式]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Php]]></category>
<pubDate>Wed, 20 Jul 2011 06:00:42 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/617/</guid> 
<description>
<![CDATA[ 
	<strong><span style="color: #4169E1;">五、策略模式</span></strong><br/>策略模式（Strategy Pattern）指的是程序中涉及决策控制的一种模式。其定义了一组算法，将每个算法都封装起来，并且使它们之间可以互换，使得这些算法在客户端调用它们的时候能够互不影响地变化。<br/><br/>在该模式中，算法是从复杂类提取的，因而可以方便地替换。策略模式通常通过定义一个抽象的基类，然后根据情况的不同创建不同的类来实现这个基类。接下来，根据实际情况的判断，对这个基类采用不同的方式进行继承。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/php/" rel="tag">php</a> , <a href="https://www.linuxfly.org/tags/pattern/" rel="tag">pattern</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/616/</link>
<title><![CDATA[[原]PHP设计模式——命令模式]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Php]]></category>
<pubDate>Tue, 19 Jul 2011 09:43:49 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/616/</guid> 
<description>
<![CDATA[ 
	<strong><span style="color: #4169E1;">四、命令模式</span></strong><br/>&nbsp;&nbsp;&nbsp;&nbsp;命令模式（Command Pattern）用来分离请求操作的客户端和执行该操作的那个对象。通过将请求本身变成一个对象来使行为请求者可向未指定的应用对象提出请求。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;命令模式以松耦合为基础，发送消息、命令和请求，或通过一组处理程序发送任意内容。每个处理程序都会自行判断自己能否处理请求。如果该请求可以被处理，进程停止。我们可以为系统添加或移除处理程序，而不影响其他处理程序。为处理请求而创建可扩展的架构时，命令模式很有价值。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/php/" rel="tag">php</a> , <a href="https://www.linuxfly.org/tags/pattern/" rel="tag">pattern</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/615/</link>
<title><![CDATA[[原]PHP设计模式——观察者模式]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Php]]></category>
<pubDate>Mon, 18 Jul 2011 05:22:04 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/615/</guid> 
<description>
<![CDATA[ 
	<strong><span style="color: #4169E1;">三、观察者模式</span></strong><br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;观察者模式（Observer Pattern）必须包含两个角色：观察者和被观察对象。观察者和被观察者之间存在“观察”的逻辑关联，当被观察者发生改变时，观察者就会观察到变化，并且做出相应的响应。观察者模式完美地将观察者和被观察者的对象分离开。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;该模式通常是向一个对象添加一个方法使本身变得可观察。当可观察的对象更改时，它会将消息发送到已注册的观察者。这些观察者使用该信息执行的操作与可观察的对象无关。结果是对象之间互相对话，而不必了解原因。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/php/" rel="tag">php</a> , <a href="https://www.linuxfly.org/tags/pattern/" rel="tag">pattern</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/614/</link>
<title><![CDATA[[原]PHP设计模式——单元素模式]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Php]]></category>
<pubDate>Fri, 15 Jul 2011 03:17:25 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/614/</guid> 
<description>
<![CDATA[ 
	<strong><span style="color: #4169E1;">二、单元素模式</span></strong><br/>&nbsp;&nbsp;&nbsp;&nbsp;单元素模式（Singleton Pattern）指的是在应用程序的范围内只对指定的类创建一个实例。通常该模式中包含一个私有构造方法，用来确保用户无法通过创建对象或者克隆的方式对其进行实例化。除此以外，该模式中还包含一个私有静态属性与公有静态方法。公有静态方法负责对其本身实例化，然后将这个对象存储在私有静态属性中，用来确保只有一个实例被创建。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/php/" rel="tag">php</a> , <a href="https://www.linuxfly.org/tags/pattern/" rel="tag">pattern</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/613/</link>
<title><![CDATA[[原]PHP设计模式——简单工厂模式]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Php]]></category>
<pubDate>Thu, 14 Jul 2011 07:47:45 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/613/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;设计模式是对面向对象设计中反复出现的问题的解决方案。以下是《大道PHP：LAMP+Zend+开源框架整合开发与实战》第10章介绍的几种常用设计模式。包括：简单工厂模式、单元素模式、观察者模式、命令模式、策略模式以及MVC模式。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/php/" rel="tag">php</a> , <a href="https://www.linuxfly.org/tags/pattern/" rel="tag">pattern</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/602/</link>
<title><![CDATA[[原]Xajax is not defined 在FireFox上的问题]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Php]]></category>
<pubDate>Wed, 29 Jun 2011 03:20:25 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/602/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;使用Xajax 时，发现同样的代码，在IE上正常，但FF上就报<span style="color: #FF0000;">xajax is not defined</span>。原来0.5版本的Xajax有个Bug需要修正。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/xajax/" rel="tag">xajax</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/601/</link>
<title><![CDATA[[原]XAJAX库简介]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Php]]></category>
<pubDate>Tue, 28 Jun 2011 05:13:38 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/601/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;因为程序很小，而且用到JavaScript的地方不多，但有部分页面又必须用Ajax刷新，所以，放弃JQuery，用了个Xajax库，还是精简版的库就可以了。<br/>&nbsp;&nbsp;&nbsp;&nbsp;Xajax是一个开源的 PHP 类库 它能够让你黏合HTML、CSS、Javascript和PHP，轻而易举的开发功能强大、基于WEB的Ajax应用软件. 使用Xajax开发的应用软件，无需重新调入页面，就能够异步调用服务器端的PHP函数和更新内容。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/php/" rel="tag">php</a> , <a href="https://www.linuxfly.org/tags/xajax/" rel="tag">xajax</a> , <a href="https://www.linuxfly.org/tags/ajax/" rel="tag">ajax</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/559/</link>
<title><![CDATA[[译]如何将PHP作为Shell脚本语言使用]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Php]]></category>
<pubDate>Thu, 16 Sep 2010 06:49:34 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/559/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;我们都知道，PHP是一种非常好的动态网页开发语言（速度飞快，开发周期短……）。但是只有很少数的人意识到PHP也可以很好的作为编写Shell脚本的语言，当PHP作为编写Shell脚本的语言时，他并没有Perl或者Bash那么强大，但是他却有着很好的优势，特别是对于我这种熟悉PHP但是不怎么熟悉Perl的人。 <br/>&nbsp;&nbsp;&nbsp;&nbsp;要使用PHP作为Shell脚本语言，你必须将PHP作为二进制的CGI编译，而不是Apache模式；编译成为二进制CGI模式运行的PHP有一些安全性的问题，关于解决的方法可以参见PHP手册（http://www.php.net）。 <br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/php/" rel="tag">php</a> , <a href="https://www.linuxfly.org/tags/shell/" rel="tag">shell</a>
]]>
</description>
</item>
</channel>
</rss>