<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FreeLAMP.com, 像风一样自由 &#187; PHP</title>
	<atom:link href="http://freelamp.com/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://freelamp.com</link>
	<description></description>
	<lastBuildDate>Mon, 26 Sep 2011 15:34:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP 的 &#8211;enable-memory-limit</title>
		<link>http://freelamp.com/58654</link>
		<comments>http://freelamp.com/58654#comments</comments>
		<pubDate>Tue, 04 Aug 2009 17:20:58 +0000</pubDate>
		<dc:creator>老徐</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[defaultcat]]></category>

		<guid isPermaLink="false">http://freelamp.com/?p=58654</guid>
		<description><![CDATA[我们可以在 php.ini 中写入 memory-limit=16M 这样的参数来限制 PHP 使用的最大内存，但是这个开关需要用 PHP 加入编译开关 &#8211;enable-memory-limit 才能有效。 Cacti 后台的&#8221;Technical Support&#8221;页面会显示这个 limit。 相关文章2011年09月26日 -- 开通新浪微博 @FreeLAMP (0)2010年03月15日 -- 用 HotSpot Shield Free VPN Server 绕过 GWF (0)2010年02月21日 -- 感谢360提权卫士 (0)2010年02月20日 -- Optimize your Windows for peak performance (0)2010年02月20日 -- We definitely fight (0)]]></description>
		<wfw:commentRss>http://freelamp.com/58654/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>升级 PHP 后修改 Lyceum 1.0.3 的问题</title>
		<link>http://freelamp.com/58649</link>
		<comments>http://freelamp.com/58649#comments</comments>
		<pubDate>Tue, 04 Aug 2009 14:02:58 +0000</pubDate>
		<dc:creator>老徐</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[defaultcat]]></category>
		<category><![CDATA[weblog]]></category>

		<guid isPermaLink="false">http://freelamp.com/?p=58649</guid>
		<description><![CDATA[Image via Wikipedia 升级 PHP 从 4.4.8 到 5.2 以后，Lyceum 1.0.3 罢工了，报编码错误，以为是 GFW 的问题，用代理绕过后还是一样，检查代码，解决的办法是在 &#8220;wp-blog-header.php&#8221; 里的 wp 前添加 echo &#8221; &#8221; 即可。 require(&#8216;private.php&#8217;); if (! isset($wp_did_header)) { $wp_did_header = true; require_once( CONFIGPATH . &#8216;wp-config.php&#8217;); if ( &#8216;active&#8217; == $blogstatus ){ echo &#8221; &#8220;; wp(); gzip_compression(); require_once(ABSPATH . WPINC . &#8216;/template-loader.php&#8217;); } else { if (!empty($slug)) [...]]]></description>
		<wfw:commentRss>http://freelamp.com/58649/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>升级 WordPress 到  2.8.1</title>
		<link>http://freelamp.com/58635</link>
		<comments>http://freelamp.com/58635#comments</comments>
		<pubDate>Sat, 18 Jul 2009 01:07:28 +0000</pubDate>
		<dc:creator>老徐</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[AMP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://freelamp.com/?p=58635</guid>
		<description><![CDATA[Image via Wikipedia 升级的步骤非常简单： 从官方下载 latest.zip ，解压缩到 Web 服务器的根目录的上一层，我喜欢用软连接，因为这样随时可以 rollback。原来的 wordpress2.7.1 目录软连接到 blog 目录，新的解压后的目录修改为 wordpress2.8.1 ， 然后重新软连接到 blog 拷贝2.7.1 目录下 wp-config.php 和 .htaccess 到新的目录下 拷贝原来的模板文件： cp -r ../wordpress-2.7.1/wp-content/themes/* wp-content/themes/ 在浏览器上运行 /wp-admin/upgrade.php 升级数据库 删除或者重命名 wp-admin 目录下的 install.php 和 upgrade.php Ctr-F5 刷新自己的网站即可看到系统已经升级成功。 相关文章2010年12月11日 -- Convert back WP MU to Wordpress (0)2010年04月10日 -- Major PHP/MySQL Site Security Issue [...]]]></description>
		<wfw:commentRss>http://freelamp.com/58635/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP Programming with PEAR</title>
		<link>http://freelamp.com/58583</link>
		<comments>http://freelamp.com/58583#comments</comments>
		<pubDate>Fri, 08 May 2009 16:03:13 +0000</pubDate>
		<dc:creator>老徐</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[defaultcat]]></category>
		<category><![CDATA[Reading]]></category>

		<guid isPermaLink="false">http://freelamp.com/?p=58583</guid>
		<description><![CDATA[Image via Wikipedia PHP Programming with PEAR 这本书介绍的是XML, Data, Dates, Web Services, 和 Web APIs 方面的。 对于用 PEAR? 来开发 Web Service 应用的程序员而言值得一读。 相关文章2009年03月8日 -- OpenSolaris Crash Course (0)2011年09月26日 -- 开通新浪微博 @FreeLAMP (0)2010年03月15日 -- 用 HotSpot Shield Free VPN Server 绕过 GWF (0)2010年02月21日 -- 感谢360提权卫士 (0)2010年02月20日 -- Optimize your Windows for peak performance (0)]]></description>
		<wfw:commentRss>http://freelamp.com/58583/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>zend_mm_heap corrupted Zend Memory Manager 5.2.9</title>
		<link>http://freelamp.com/58540</link>
		<comments>http://freelamp.com/58540#comments</comments>
		<pubDate>Wed, 08 Apr 2009 16:15:31 +0000</pubDate>
		<dc:creator>老徐</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[defaultcat]]></category>

		<guid isPermaLink="false">http://freelamp.com/?p=58540</guid>
		<description><![CDATA[用以上的关键字去 Google 搜索到的结果不到10项。 即使是在最新版本的 5.2.9 的 PHP 上，还遇到&#8221;zend_mm_heap corrupted&#8221; 这样的问题实在令人头痛。解决的办法只能是编译时打开： &#8211;enable-debug。 其他的种种解决办法都无效，禁用 Zend Memory Manager 只能在命令行下有效，设置环境变量 USE_ZEND_ALLOC=0 即可，而在 Apache 模块方式下，始终都是 enabled 的，在 httpd.conf 里设置 setEnv USE_ZEND_ALLOC 0 或者在 php.ini 里设置，都无济于事。 相关文章2011年09月26日 -- 开通新浪微博 @FreeLAMP (0)2010年03月15日 -- 用 HotSpot Shield Free VPN Server 绕过 GWF (0)2010年02月21日 -- 感谢360提权卫士 (0)2010年02月20日 -- Optimize your Windows for peak performance [...]]]></description>
		<wfw:commentRss>http://freelamp.com/58540/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>五个 PHP 编程好习惯</title>
		<link>http://freelamp.com/58266</link>
		<comments>http://freelamp.com/58266#comments</comments>
		<pubDate>Thu, 04 Dec 2008 08:42:09 +0000</pubDate>
		<dc:creator>老徐</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[defaultcat]]></category>

		<guid isPermaLink="false">http://lamp.nalai.net/58266</guid>
		<description><![CDATA[看过一些 PHP 程序员的程序，好心的一些建议都被各种堂皇的理由拒绝。读到这篇文章，甚感一个良好的程序员之难求。 良好的命名，杜绝含糊的名字，函数、变量的命名要简洁而且能反映含义。 保持短小的函数，杜绝很长的函数、类，尽量让每一个函数只做一件事情。 做好文档，保持良好的文档习惯，对函数和类做好说明。 错误处理，尽量利用错误处理来保证代码的强壮性，而且能增加可读性和可理解性。 不要拷贝/粘贴，把代码加上参数后成为可重用的函数。 相关文章2011年09月26日 -- 开通新浪微博 @FreeLAMP (0)2010年03月15日 -- 用 HotSpot Shield Free VPN Server 绕过 GWF (0)2010年02月21日 -- 感谢360提权卫士 (0)2010年02月20日 -- Optimize your Windows for peak performance (0)2010年02月20日 -- We definitely fight (0)]]></description>
		<wfw:commentRss>http://freelamp.com/58266/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>优化 PHP 代码的 40 个小窍门</title>
		<link>http://freelamp.com/58385</link>
		<comments>http://freelamp.com/58385#comments</comments>
		<pubDate>Tue, 16 Oct 2007 14:24:45 +0000</pubDate>
		<dc:creator>老徐</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[defaultcat]]></category>

		<guid isPermaLink="false">http://lamp.nalai.net/58385</guid>
		<description><![CDATA[由 徐永久 发表于 2007年10月16日 09:23。 摘自： http://reinholdweber.com/?p=3 40 Tips for optimizing your php Code 1. If a method can be static, declare it static. Speed improvement is by a factor of 4. 2. echo is faster than print. 3. Set the maxvalue for your for-loops before and not in the loop. 4. Unset your variables [...]]]></description>
		<wfw:commentRss>http://freelamp.com/58385/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>取消PHP代码中的 short_open_tag</title>
		<link>http://freelamp.com/58338</link>
		<comments>http://freelamp.com/58338#comments</comments>
		<pubDate>Mon, 11 Jun 2007 13:13:48 +0000</pubDate>
		<dc:creator>老徐</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[defaultcat]]></category>

		<guid isPermaLink="false">http://lamp.nalai.net/58338</guid>
		<description><![CDATA[由 徐永久 发表于 2007年06月11日 09:48。 一些老的 PHP 程序，采用了 short_open_tag ， 即类似 这样开头的 PHP 程序， 而不是 本办法采用 Perl 的 pie 语句，一行代码修改所有的 short_open_tag 为标准 tag. # find . -name &#8220;*.php&#8221; &#124;xargs perl -pi -e &#8216;s/\]]></description>
		<wfw:commentRss>http://freelamp.com/58338/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>测试您的 PHP 水平</title>
		<link>http://freelamp.com/58386</link>
		<comments>http://freelamp.com/58386#comments</comments>
		<pubDate>Fri, 18 May 2007 14:25:37 +0000</pubDate>
		<dc:creator>老徐</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[defaultcat]]></category>

		<guid isPermaLink="false">http://lamp.nalai.net/58386</guid>
		<description><![CDATA[由 徐永久 发表于 2007年05月18日 19:25。 在 Unix Review 上看到这个很有意思的测试，和大家共享。 UnixReview.com May 2007 Test Your Knowledge of PHP by Emmett Dulaney From: http://www.unixreview.com/documents/s=10130/ur0705d/ Increasingly, PHP seems to be the tool/language that is used to make Web sites dynamic. While it is far from the only open source scripting language available, PHP&#8217;s abilities and features are quickly [...]]]></description>
		<wfw:commentRss>http://freelamp.com/58386/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.Net __VIEWSTATE 处理</title>
		<link>http://freelamp.com/58387</link>
		<comments>http://freelamp.com/58387#comments</comments>
		<pubDate>Wed, 16 May 2007 14:26:12 +0000</pubDate>
		<dc:creator>老徐</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[defaultcat]]></category>

		<guid isPermaLink="false">http://lamp.nalai.net/58387</guid>
		<description><![CDATA[由 徐永久 发表于 2007年05月16日 21:12。 要用 PHP 的 curl 库去 POST 一个 .aspx 程序，发现其中的 __VIEWSTATE 字段不好处理。 把自己的做法，简要写在这里。 $url=&#8217;http://blahblah/loginlq.aspx?&#8217;; $post=&#8221;regid=$stid&#038;home_phone=$phone&#038;modifyinfo=&#8221;; $post .= &#8216;&#038;__VIEWSTATE=&#8217;.urlencode(&#8220;dDwtOTA1ODA5NjM1Ozs+19FeGCtdvXhDgOViOQijIJZiM0U=&#8221;); $url .= $post; $contents = post($url); 其中的 dDwtOTA1ODA5NjM1Ozs+19FeGCtdvXhDgOViOQijIJZiM0U= 在处理之前必须先 urlencode ，否则不能为服务器所识别。 关于 VIEWSTATE 可以参考： http://www.webreference.com/programming/asp/viewstate/index.html http://www.eggheadcafe.com/articles/20060208.asp 相关文章2011年09月26日 -- 开通新浪微博 @FreeLAMP (0)2010年03月15日 -- 用 HotSpot Shield Free VPN Server 绕过 GWF (0)2010年02月21日 -- 感谢360提权卫士 [...]]]></description>
		<wfw:commentRss>http://freelamp.com/58387/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

