<?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>phpsir的博客</title>
	<atom:link href="http://www.phpsir.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phpsir.com</link>
	<description>注意听客户叙述, 发散的联想能力, 总结</description>
	<lastBuildDate>Tue, 21 Feb 2012 01:56:00 +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>ecshop的财付通接口需要更新的文件地址</title>
		<link>http://www.phpsir.com/ecshop-tenpay-payment-update.html</link>
		<comments>http://www.phpsir.com/ecshop-tenpay-payment-update.html#comments</comments>
		<pubDate>Tue, 21 Feb 2012 01:55:32 +0000</pubDate>
		<dc:creator>phpsir</dc:creator>
				<category><![CDATA[经验随笔]]></category>
		<category><![CDATA[ecshop]]></category>
		<category><![CDATA[tenpay]]></category>
		<category><![CDATA[财付通]]></category>

		<guid isPermaLink="false">http://www.phpsir.com/?p=359</guid>
		<description><![CDATA[http://union.tenpay.com/b2cpatchs.shtml]]></description>
			<content:encoded><![CDATA[<p>http://union.tenpay.com/b2cpatchs.shtml</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpsir.com/ecshop-tenpay-payment-update.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>像jq一样的php simple_html_dom.php</title>
		<link>http://www.phpsir.com/jquery-simple-html-dom.html</link>
		<comments>http://www.phpsir.com/jquery-simple-html-dom.html#comments</comments>
		<pubDate>Thu, 02 Feb 2012 14:31:37 +0000</pubDate>
		<dc:creator>phpsir</dc:creator>
				<category><![CDATA[PHP杂症]]></category>

		<guid isPermaLink="false">http://www.phpsir.com/?p=354</guid>
		<description><![CDATA[simple_html_dom.php 一款像jquery一样好用的html/xml 分析利器 文档在: http://simplehtmldom.sourceforge.net/ API http://simplehtmldom.sourceforge.net/manual_api.htm]]></description>
			<content:encoded><![CDATA[<p>simple_html_dom.php 一款像jquery一样好用的html/xml 分析利器<br />
文档在:<br />
 <a href="http://simplehtmldom.sourceforge.net/">http://simplehtmldom.sourceforge.net/</a><br />
API</p>
<p><a href="http://simplehtmldom.sourceforge.net/manual_api.htm">http://simplehtmldom.sourceforge.net/manual_api.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpsir.com/jquery-simple-html-dom.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ecshop:DEBUG_MODE在后台图片上传fckeditor的错误</title>
		<link>http://www.phpsir.com/ecshop-debug-mode-fckeditor.html</link>
		<comments>http://www.phpsir.com/ecshop-debug-mode-fckeditor.html#comments</comments>
		<pubDate>Tue, 29 Nov 2011 07:03:22 +0000</pubDate>
		<dc:creator>phpsir</dc:creator>
				<category><![CDATA[PHP杂症]]></category>
		<category><![CDATA[DEBUG_MODE]]></category>
		<category><![CDATA[ecshop]]></category>
		<category><![CDATA[进度条]]></category>

		<guid isPermaLink="false">http://www.phpsir.com/?p=348</guid>
		<description><![CDATA[因为 includes\fckeditor\editor\filemanager\connectors\php\upload.php 没有执行 init.php 所以 DEBUG_MODE变量没赋值，所以 导致 http://域名/includes/fckeditor/editor/filemanager/connectors/php/upload.php?Type=ImageImage 出错 显示为 lib_base.php 的read_static_cache 和 write_static_cache 函数为定义DEBUG_MODE 常量 所以保险的办法是在 upload.php 第一行加入 define(&#8216;DEBUG_MODE&#8217;, 0); 这个错误的表现行为是: 上传图片可以正常上传，但是进度条图片一直滚动, 原因就是输出了错误提示，导致]]></description>
			<content:encoded><![CDATA[<p>因为 includes\fckeditor\editor\filemanager\connectors\php\upload.php 没有执行 init.php 所以 DEBUG_MODE变量没赋值，所以<br />
导致 http://域名/includes/fckeditor/editor/filemanager/connectors/php/upload.php?Type=ImageImage 出错<br />
显示为 lib_base.php 的read_static_cache 和 write_static_cache 函数为定义DEBUG_MODE 常量<br />
所以保险的办法是在 upload.php 第一行加入 </p>
<p>define(&#8216;DEBUG_MODE&#8217;, 0);</p>
<p>这个错误的表现行为是: 上传图片可以正常上传，但是进度条图片一直滚动, 原因就是输出了错误提示，导致</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpsir.com/ecshop-debug-mode-fckeditor.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>windows 本地安全策略 命令行方法</title>
		<link>http://www.phpsir.com/windows-ipsec-policy-cli.html</link>
		<comments>http://www.phpsir.com/windows-ipsec-policy-cli.html#comments</comments>
		<pubDate>Sun, 06 Nov 2011 10:18:08 +0000</pubDate>
		<dc:creator>phpsir</dc:creator>
				<category><![CDATA[经验随笔]]></category>

		<guid isPermaLink="false">http://www.phpsir.com/?p=336</guid>
		<description><![CDATA[XP下的ipseccmd.exe 需要下载先，请自行google ,关键词 &#8220;ipseccmd 下载&#8221; ,或者到 http://ishare.iask.sina.com.cn/f/7579277.html下载 下面文章建议看下http://microsoft.cnfan.net/winsystem/3692.html  和 http://technet.microsoft.com/en-us/library/cc739550(WS.10).aspx#BKMK_add_rule 本博客主要目的是 屏蔽 某些ip段对本机80端口的访问，比较适用于windows服务器(如果是windows 2003 ,命令行相应的应该是 ipsec.exe ) 命令如下 ipseccmd.exe -w reg -p "phpsir ipsec" -o ipseccmd.exe -w reg -p "phpsir ipsec" -r "block lijin 1.1" -f 1.1.*.*=*:80:TCP -n BLOCK ipseccmd.exe -w reg &#8230; <a href="http://www.phpsir.com/windows-ipsec-policy-cli.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>XP下的ipseccmd.exe 需要下载先，请自行google ,关键词 &#8220;ipseccmd 下载&#8221; ,或者到 <a href="http://ishare.iask.sina.com.cn/f/7579277.html">http://ishare.iask.sina.com.cn/f/7579277.html</a>下载</p>
<p>下面文章建议看下<a href="http://microsoft.cnfan.net/winsystem/3692.html">http://microsoft.cnfan.net/winsystem/3692.html</a>  和 <a href="http://technet.microsoft.com/en-us/library/cc739550(WS.10).aspx#BKMK_add_rule">http://technet.microsoft.com/en-us/library/cc739550(WS.10).aspx#BKMK_add_rule</a></p>
<p>本博客主要目的是 屏蔽 某些ip段对本机80端口的访问，比较适用于windows服务器(如果是windows 2003 ,命令行相应的应该是 ipsec.exe )<br />
命令如下</p>
<pre>
ipseccmd.exe -w reg -p "phpsir ipsec" -o
ipseccmd.exe -w reg -p "phpsir ipsec" -r "block lijin 1.1" -f 1.1.*.*=*:80:TCP -n BLOCK
ipseccmd.exe -w reg -p "phpsir ipsec" -r "block lijin 2.2" -f 2.2.*.*=*:80:TCP -n BLOCK
ipseccmd.exe -w reg -p "phpsir ipsec" -y
</pre>
<p>win2003/win7的netsh 方法</p>
<pre>netsh ipsec static set policy name="phpsir-deny-policy" assign=n
netsh ipsec static delete policy name="phpsir-deny-policy"

netsh ipsec static add policy name="phpsir-deny-policy"
netsh ipsec static add filteraction name="phpsir-deny" action=block

netsh ipsec static add filter filterlist="deny 1.1.1.1" srcaddr=1.1.1.1 srcport=0 dstaddr=me dstport=0 protocol=0 mirrored=yes
netsh ipsec static add filter filterlist="deny 2.2.2.2" srcaddr=2.2.2.2 srcport=0 dstaddr=me dstport=0 protocol=0 mirrored=yes 

netsh ipsec static add rule name="11111" policy="phpsir-deny-policy" filterlist="deny 1.1.1.1" filteraction="phpsir-deny"
netsh ipsec static add rule name="22222" policy="phpsir-deny-policy" filterlist="deny 2.2.2.2" filteraction="phpsir-deny"   

netsh ipsec static set policy name="phpsir-deny-policy" assign=y</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.phpsir.com/windows-ipsec-policy-cli.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>再次中文解释paypal IPN</title>
		<link>http://www.phpsir.com/paypal-ipn-2.html</link>
		<comments>http://www.phpsir.com/paypal-ipn-2.html#comments</comments>
		<pubDate>Tue, 30 Aug 2011 00:44:47 +0000</pubDate>
		<dc:creator>phpsir</dc:creator>
				<category><![CDATA[PHP杂症]]></category>
		<category><![CDATA[ipn]]></category>
		<category><![CDATA[paypal]]></category>

		<guid isPermaLink="false">http://www.phpsir.com/?p=324</guid>
		<description><![CDATA[参见地址 http://paypal.ebay.cn/integrationcenter/list__resource_2.html 启用IPN有两种方法： 一种是在您的PayPal账户里进行全局设置 另一种是在每笔交易的付款按钮中通过定义变量notify_url来进行设定]]></description>
			<content:encoded><![CDATA[<p>参见地址</p>
<p><a href="http://paypal.ebay.cn/integrationcenter/list__resource_2.html" target="_blank">http://paypal.ebay.cn/integrationcenter/list__resource_2.html</a></p>
<p>启用IPN有两种方法：<br />
一种是在您的PayPal账户里进行全局设置<br />
另一种是在每笔交易的付款按钮中通过定义变量notify_url来进行设定</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpsir.com/paypal-ipn-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ecshop的ucenter同步登陆uc.php 一点错误勘误</title>
		<link>http://www.phpsir.com/ecshop-api-uc.html</link>
		<comments>http://www.phpsir.com/ecshop-api-uc.html#comments</comments>
		<pubDate>Tue, 16 Aug 2011 08:09:39 +0000</pubDate>
		<dc:creator>phpsir</dc:creator>
				<category><![CDATA[PHP杂症]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[dzx]]></category>
		<category><![CDATA[ecshop]]></category>
		<category><![CDATA[ucenter]]></category>

		<guid isPermaLink="false">http://www.phpsir.com/?p=318</guid>
		<description><![CDATA[在ecshop的会员整合ucenter的set_cookie函数有问题 文件在 /api/uc.php 搜索 set_cookie function set_cookie($user_id=&#8221;, $user_name = &#8221;, $email = &#8221;) { if (empty($user_id)) { /* 摧毁cookie */ $time = time() &#8211; 3600; setcookie(&#8216;ECS[user_id]&#8216;, &#8221;, $time);//这里有问题 setcookie(&#8216;ECS[username]&#8216;, &#8221;, $time);//这里有问题 setcookie(&#8216;ECS[email]&#8216;, &#8221;, $time);//这里有问题 } else { /* 设置cookie */ &#8230; <a href="http://www.phpsir.com/ecshop-api-uc.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>在ecshop的会员整合ucenter的set_cookie函数有问题<br />
文件在 /api/uc.php 搜索 set_cookie  </p>
<p>function set_cookie($user_id=&#8221;, $user_name = &#8221;, $email = &#8221;)<br />
{<br />
    if (empty($user_id))<br />
    {<br />
        /* 摧毁cookie */<br />
        $time = time() &#8211; 3600;<br />
        setcookie(&#8216;ECS[user_id]&#8216;,  &#8221;, $time);//这里有问题<br />
        setcookie(&#8216;ECS[username]&#8216;, &#8221;, $time);//这里有问题<br />
        setcookie(&#8216;ECS[email]&#8216;,    &#8221;, $time);//这里有问题<br />
    }<br />
    else<br />
    {<br />
        /* 设置cookie */<br />
        $time = time() + 3600 * 24 * 30;<br />
        setcookie(&#8220;ECS[user_id]&#8220;,  $user_id,   $time, $GLOBALS['cookie_path'], $GLOBALS['cookie_domain']);<br />
        setcookie(&#8220;ECS[username]&#8220;, $user_name, $time, $GLOBALS['cookie_path'], $GLOBALS['cookie_domain']);<br />
        setcookie(&#8220;ECS[email]&#8220;,    $email,     $time, $GLOBALS['cookie_path'], $GLOBALS['cookie_domain']);<br />
    }<br />
}</p>
<p>因为假设这样的架构<br />
http://域名/ 是 ecshop ,http://域名/bbs/ 为论坛dzX2, 那么，在ec登陆后，dzX2 点退出，<br />
会发送一个javascript申请到 /api/uc.php的 logout请求 ( <scritp src=/api/uc.php?action=logout............)<br />
如果setcookie 只是在 /bbs/ 下 设置cookie 为空，那么就清空不了cookie<br />
严格的应该是<br />
setcookie('ECS[user_id]',  '', $time,$GLOBALS['cookie_path'], $GLOBALS['cookie_domain']);</p>
<p>那么代码可以修改为<br />
<a href="http://www.phpsir.com/wp-content/uploads/2011/08/ecshop-uc-apicookie.png"><img src="http://www.phpsir.com/wp-content/uploads/2011/08/ecshop-uc-apicookie-300x139.png" alt="" title="ecshop-uc-apicookie" width="300" height="139" class="alignnone size-medium wp-image-330" /></a></p>
<p>还有要修改ecshop的 ucenter插件，ncludes/modules/integrates/ucenter.php<br />
如图两部分<br />
<a href="http://www.phpsir.com/wp-content/uploads/2011/08/1.png"><img src="http://www.phpsir.com/wp-content/uploads/2011/08/1-300x139.png" alt="" title="1" width="300" height="139" class="alignnone size-medium wp-image-345" /></a><br />
<a href="http://www.phpsir.com/wp-content/uploads/2011/08/2.png"><img src="http://www.phpsir.com/wp-content/uploads/2011/08/2-300x58.png" alt="" title="2" width="300" height="58" class="alignnone size-medium wp-image-346" /></a><br />
另外还要看 这一篇<br />
<a href="http://www.phpsir.com/ucenter-sync.html" target="_blank">http://www.phpsir.com/ucenter-sync.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpsir.com/ecshop-api-uc.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>关于utf8 bom 的w3c文章</title>
		<link>http://www.phpsir.com/utf8-bom-w3c.html</link>
		<comments>http://www.phpsir.com/utf8-bom-w3c.html#comments</comments>
		<pubDate>Tue, 16 Aug 2011 02:53:03 +0000</pubDate>
		<dc:creator>phpsir</dc:creator>
				<category><![CDATA[PHP杂症]]></category>

		<guid isPermaLink="false">http://www.phpsir.com/?p=316</guid>
		<description><![CDATA[http://www.w3.org/International/questions/qa-utf8-bom]]></description>
			<content:encoded><![CDATA[<p>http://www.w3.org/International/questions/qa-utf8-bom</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpsir.com/utf8-bom-w3c.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>编译php支持jpeg的一点经验，先后居然有关</title>
		<link>http://www.phpsir.com/php-gd-jpeg-order.html</link>
		<comments>http://www.phpsir.com/php-gd-jpeg-order.html#comments</comments>
		<pubDate>Fri, 12 Aug 2011 07:57:31 +0000</pubDate>
		<dc:creator>phpsir</dc:creator>
				<category><![CDATA[PHP杂症]]></category>
		<category><![CDATA[gd]]></category>
		<category><![CDATA[jpeg]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.phpsir.com/?p=310</guid>
		<description><![CDATA[./configure &#8211;with-gd &#8211;with-jpeg-dir=/usr/lib 这个居然不起作用 那么起作用的是 ./configure &#8211;with-jpeg-dir=/usr/lib &#8211;with-gd 在此谨记！]]></description>
			<content:encoded><![CDATA[<p>./configure &#8211;with-gd &#8211;with-jpeg-dir=/usr/lib<br />
这个居然不起作用</p>
<p>那么起作用的是<br />
./configure &#8211;with-jpeg-dir=/usr/lib &#8211;with-gd </p>
<p>在此谨记！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpsir.com/php-gd-jpeg-order.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>curl 检查服务器是否支持 gzip</title>
		<link>http://www.phpsir.com/curl_check_gzip.html</link>
		<comments>http://www.phpsir.com/curl_check_gzip.html#comments</comments>
		<pubDate>Tue, 05 Jul 2011 01:31:37 +0000</pubDate>
		<dc:creator>phpsir</dc:creator>
				<category><![CDATA[经验随笔]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[gzip]]></category>

		<guid isPermaLink="false">http://www.phpsir.com/?p=302</guid>
		<description><![CDATA[http://www.ninjasys.co.uk/linux/using-curl-to-check-if-a-page-is-gzippedcompressed/ 方法如下 curl -I -H 'Accept-Encoding: gzip,deflate' -H "Host:域名" http://ip/url 如果结果是 HTTP/1.1 200 OK Server: nginx/0.8.52 Date: Tue, 05 Jul 2011 01:28:30 GMT Content-Type: application/x-javascript Last-Modified: Tue, 10 Aug 2010 00:33:24 GMT Connection: keep-alive Vary: Accept-Encoding Expires: Thu, 04 Aug &#8230; <a href="http://www.phpsir.com/curl_check_gzip.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>http://www.ninjasys.co.uk/linux/using-curl-to-check-if-a-page-is-gzippedcompressed/</p>
<pre>方法如下

curl -I -H 'Accept-Encoding: gzip,deflate' -H "Host:域名"  http://ip/url
如果结果是
HTTP/1.1 200 OK
Server: nginx/0.8.52
Date: Tue, 05 Jul 2011 01:28:30 GMT
Content-Type: application/x-javascript
Last-Modified: Tue, 10 Aug 2010 00:33:24 GMT
Connection: keep-alive
Vary: Accept-Encoding
Expires: Thu, 04 Aug 2011 01:28:30 GMT
Cache-Control: max-age=2592000
<span style="color: #ff0000;">Content-Encoding: gzip</span>  很好支持

如果没有 Content-Encoding: gzip 就不支持gzip</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.phpsir.com/curl_check_gzip.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>64位linux安装vsftpd虚拟用户的几点注意</title>
		<link>http://www.phpsir.com/64bit-linux-vsftpd-virtualuser-notice.html</link>
		<comments>http://www.phpsir.com/64bit-linux-vsftpd-virtualuser-notice.html#comments</comments>
		<pubDate>Sat, 25 Jun 2011 09:56:11 +0000</pubDate>
		<dc:creator>phpsir</dc:creator>
				<category><![CDATA[经验随笔]]></category>
		<category><![CDATA[virtualuser]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://www.phpsir.com/?p=298</guid>
		<description><![CDATA[auth required /lib64/security/pam_userdb.so db=/etc/vsftpd_login  注意红色部分！！！ 如果出现登陆503错误，请看 tail -f /var/log/secure 以确定具体是否是因为pam登陆验证的问题 注意权限方面问题, google 最好搜索英文 vsftpd virtual user http://linuxforfun.net/2008/04/05/vsftpd-virtual-users/  可以参考下]]></description>
			<content:encoded><![CDATA[<ol>
<li>auth required <span style="color: #ff0000;">/lib64</span>/security/pam_userdb.so db=/etc/vsftpd_login  注意红色部分！！！</li>
<li>如果出现登陆503错误，请看 <code> tail -f /var/log/secure 以确定具体是否是因为pam登陆验证的问题</code></li>
<li>注意权限方面问题,</li>
<li>google 最好搜索英文 vsftpd virtual user</li>
<li>http://linuxforfun.net/2008/04/05/vsftpd-virtual-users/  可以参考下</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.phpsir.com/64bit-linux-vsftpd-virtualuser-notice.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

