<?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>PHPMan--Live and learn</title>
	<atom:link href="http://www.phpman.com.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phpman.com.cn</link>
	<description>不积跬步,无以至千里;不积小流,无以成江海</description>
	<lastBuildDate>Wed, 03 Mar 2010 01:24:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>恶搞版《楼市春晚》视频</title>
		<link>http://www.phpman.com.cn/archives/339</link>
		<comments>http://www.phpman.com.cn/archives/339#comments</comments>
		<pubDate>Wed, 03 Mar 2010 01:24:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=339</guid>
		<description><![CDATA[<object width="420" height="363"><param name="movie" value="http://www.tudou.com/v/78UNX-eQI3c"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="opaque"></param><embed src="http://www.tudou.com/v/78UNX-eQI3c" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="opaque" width="420" height="363"></embed></object>

]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/339/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>linux下批量正则查找替换文本文件内容</title>
		<link>http://www.phpman.com.cn/archives/337</link>
		<comments>http://www.phpman.com.cn/archives/337#comments</comments>
		<pubDate>Tue, 02 Mar 2010 15:35:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[system related]]></category>
		<category><![CDATA[正则语法]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[正则]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=337</guid>
		<description><![CDATA[
find -name '*.html' &#124; xargs perl -pi -e 's&#124;href=&#34;(.*\.html)&#34;&#124;href=&#34;/html/$1&#34;&#124;g'

如上所示为我在所有形如xxx.html前加上/html/
正则查找，非常灵活方便。留帖备忘
]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/337/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>支持ie6 ie7 ie8 firefox的javascript添加至收藏夹代码</title>
		<link>http://www.phpman.com.cn/archives/335</link>
		<comments>http://www.phpman.com.cn/archives/335#comments</comments>
		<pubDate>Tue, 02 Mar 2010 10:31:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程相关]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=335</guid>
		<description><![CDATA[
function addfavor&#40;url,title&#41; &#123;
    if&#40;confirm&#40;'确定添加收藏？'&#41;&#41;&#123;
        var ua = navigator.userAgent.toLowerCase&#40;&#41;;
        if&#40;ua.indexOf&#40;&#34;msie 8&#34;&#41;&#62;-1&#41;&#123;
            external.AddToFavoritesBar&#40;url,title,'slice'&#41;;//IE8
        &#125;else&#123;
         [...]]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/335/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>window7系统玩星际争霸不能全屏的问题</title>
		<link>http://www.phpman.com.cn/archives/333</link>
		<comments>http://www.phpman.com.cn/archives/333#comments</comments>
		<pubDate>Thu, 04 Feb 2010 15:35:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=333</guid>
		<description><![CDATA[Win键+R键，打开运行窗口，输入regedit 回车，这样就打开了注册表编辑器，然后，定位到以下位置：
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\GraphicsDrivers\Configuration\
在Configuration这上面右键，选择查找，输入Scaling，在右框找到scaling，右键scaling修改
将数值改为3即可（原值是4），这种方法基本通杀所有Windows7下游戏的全屏问题。
另外，WINDOWS7玩星际菜单栏还有花屏现象（游戏中为正常）。可下载花屏补丁。
]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/333/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>金老师，一路走好。</title>
		<link>http://www.phpman.com.cn/archives/328</link>
		<comments>http://www.phpman.com.cn/archives/328#comments</comments>
		<pubDate>Wed, 13 Jan 2010 08:57:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=328</guid>
		<description><![CDATA[金国兴老师，敬爱的地理都是，虽然只教我们一年地理，事隔10载记忆犹新，不幸的是，他于1月11日中午突发心肌梗死离世，英年45岁。愿他天堂之路走好。
]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/328/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>php模块动态编译</title>
		<link>http://www.phpman.com.cn/archives/323</link>
		<comments>http://www.phpman.com.cn/archives/323#comments</comments>
		<pubDate>Sat, 09 Jan 2010 11:17:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=323</guid>
		<description><![CDATA[今天编译memcache扩展，由于从别的机器拷过来的，忘记make clean，出了点插曲，备忘下
cd memcache-2.2.5
/usr/local/bin/phpize
make clean
./configure &#8211;enable-memcache &#8211;with-php-config=/usr/local/bin/php-config &#8211;with-zlib-dir
make
make install
编译后会生成memcache.so
例如我的是：
/usr/local/lib/php/extensions/no-debug-non-zts-20060613/
修改php.ini
将extension_dir改为以上目录或将生成的so文件移至extension目录
添加行
extension=memcache.so
]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/323/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>38个精美css 和 jQuery 多级下拉菜单实例</title>
		<link>http://www.phpman.com.cn/archives/319</link>
		<comments>http://www.phpman.com.cn/archives/319#comments</comments>
		<pubDate>Sat, 19 Dec 2009 05:51:42 +0000</pubDate>
		<dc:creator>phpman</dc:creator>
				<category><![CDATA[编程相关]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=319</guid>
		<description><![CDATA[当您需要创建一些内容和菜单部分很多的大型网站时，往往需要<strong>多级的菜单</strong>来将内容分类,这里收集合了<strong>38个 css 和 jQuery 多级下拉菜单解决方案</strong>，主要是基于jQuery和CSS下拉或多层次的下降可加载的文件，并且您只需要修改下CSS。就能快速搭建您自己的多级下拉菜单。]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/319/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>apache+subversion+dav 构建基于http的svn服务</title>
		<link>http://www.phpman.com.cn/archives/303</link>
		<comments>http://www.phpman.com.cn/archives/303#comments</comments>
		<pubDate>Tue, 17 Nov 2009 07:52:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[system related]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=303</guid>
		<description><![CDATA[昨天将服务器配置了svn服务,现作整理(以centos linux为例)，以作备忘。
1.安装基本软件

yum install subversion subversion-tools
yum install libapache2-svn mod_dav_svn

2.创建版本库
假定我们将版本库存放在/data/svn/repos

mkdir -p /data/svn/repos
cd /data/svn/repos
svnadmin create test

如果要导入一些已有的代码,假定/data/www/test有一些写好的代码要导入到库中

svn import file:///data/www/test /data/svn/repos/test

这里导入成功后版本为1
3. 修改/etc/httpd/conf.d/svbversion.conf
(该文件在安装mod_dav_svn后自动产生)
取消注释以下行

LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so
&#60;Location /repos&#62;
   DAV svn 
   SVNParentPath /data/svn/repos
#   &#60;LimitExcept GET PROPFIND OPTIONS REPORT&#62;
      # Require SSL connection for password [...]]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/303/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>彩票在线机选</title>
		<link>http://www.phpman.com.cn/archives/296</link>
		<comments>http://www.phpman.com.cn/archives/296#comments</comments>
		<pubDate>Tue, 03 Nov 2009 06:53:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[彩票]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=296</guid>
		<description><![CDATA[闲着没事，写个彩票机选的～使用mt_rand产生而已，体彩、福彩等排列或组合型彩票均可使用,在线测试
下载源码
]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/296/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>初试手了下bash编程,定期清除日志</title>
		<link>http://www.phpman.com.cn/archives/289</link>
		<comments>http://www.phpman.com.cn/archives/289#comments</comments>
		<pubDate>Wed, 21 Oct 2009 06:38:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[shell]]></category>
		<category><![CDATA[system related]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=289</guid>
		<description><![CDATA[由于公司网站的日志文件按天为目录存放，格式如下
20090901
20090902
……
时间一长，硬盘老暴满，正好前些天看过点shell的知识，应用一下^_^

#!/bin/bash
#日志保留月份数
reserveMonth=2
#需保存的最早一天的日志
oldest=`date -d &#34;-$reserveMonth month&#34; +%Y%m%d`
#日志存放目录
workdir='/home/phpman/test'
#搜索目录
dirs=`ls $workdir -F &#124; grep -P '\d{8}/' &#124; sed 's/.$//'`
for i in $dirs;do
#早于最早那天的，删除
    if test $i -le $oldest
    then
        tmp_dir=${workdir}/$i
#记录此次操作的记录
        echo &#34;Directory '$tmp_dir' deleted at `date '+%Y-%m-%d %H:%M:%S'`&#34; &#62;&#62; ${workdir}/delete.log
  [...]]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/289/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
