<?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>花花世界 &#187; PHP</title>
	<atom:link href="http://kisexu.com/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://kisexu.com</link>
	<description>徐小花的个人站点</description>
	<lastBuildDate>Sun, 29 Apr 2012 05:02:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>IE无法设置短域名cookie的bug</title>
		<link>http://kisexu.com/blog/9</link>
		<comments>http://kisexu.com/blog/9#comments</comments>
		<pubDate>Sat, 02 Apr 2011 07:16:29 +0000</pubDate>
		<dc:creator>徐 小花</dc:creator>
				<category><![CDATA[技术研究]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://kisexu.com/?p=65</guid>
		<description><![CDATA[之前给学校的网站买了一个短域名，然后在制作网站的过程中，发现了IE的这个bug。 询问了叶军@cuteyejun老师和speedphp的jake，貌似都没有办法解决。 这个bug的具体情况是如果你的域名长度不大于5字节（包括.号），如ab.cd、a.bc，那么PHP就无法在IE下设置带有域名参数的cookie，如： setcookie('Fuck_IE','cao2',-86400,"/",".ab.cd"); 需要去掉域名参数，才能设置cookie，如： setcookie('Fuck_IE','cao2',-86400); 不过这样就不能设置全域的cookie了，折中的办法是，利用session传递信息，设置cookie。 PS：JS同样有这个问题，也需要去除域名参数才可设置cookie。IE6到IE9都有这个bug]]></description>
			<content:encoded><![CDATA[<p>之前给学校的网站买了一个短域名，然后在制作网站的过程中，发现了IE的这个bug。<br />
询问了叶军<a href="http://t.sina.com.cn/n/cuteyejun" target="_blank">@cuteyejun</a>老师和<a href="http://speedphp.com" target="_blank">speedphp</a>的<a href="http://speedphp.com/bbs/viewthread.php?tid=1445" target="_blank">jake</a>，貌似都没有办法解决。</p>
<p>这个bug的具体情况是如果你的域名长度不大于5字节（包括.号），如ab.cd、a.bc，那么PHP就无法在IE下设置带有域名参数的cookie，如：</p>
<p><code>setcookie('Fuck_IE','cao2',-86400,"/",".ab.cd");</code></p>
<p>需要去掉域名参数，才能设置cookie，如：</p>
<p><code>setcookie('Fuck_IE','cao2',-86400);</code></p>
<p>不过这样就不能设置全域的cookie了，折中的办法是，利用session传递信息，设置cookie。<br />
PS：JS同样有这个问题，也需要去除域名参数才可设置cookie。IE6到IE9都有这个bug</p>
]]></content:encoded>
			<wfw:commentRss>http://kisexu.com/blog/9/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>我的第一个SinaApp应用</title>
		<link>http://kisexu.com/blog/3</link>
		<comments>http://kisexu.com/blog/3#comments</comments>
		<pubDate>Thu, 24 Jun 2010 12:18:11 +0000</pubDate>
		<dc:creator>徐 小花</dc:creator>
				<category><![CDATA[个人项目]]></category>
		<category><![CDATA[Alexa]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SinaApp]]></category>

		<guid isPermaLink="false">http://kisexu.com/?p=11</guid>
		<description><![CDATA[桃花&#8211;Alexa网站排名调用工具 今天试用了一下Sina App Engine，顺便做个一个JS调用的Alexa网站排名工具，数据来自Alexa官网。JS调用，只输出排名数据，可以很方便地用CSS定义样式。 Sina App Engine支持PHP，但是它的curl只能用来调取“http://www.sina.com.cn”域名下的资源，但是幸好有个类似的Fetchurl服务 这个应用被我起名“桃花”，这是我想到一件有意思的事：一个每做个小东西，都起名叫“XX花”，让人一眼能看出是我做的，O(∩_∩)O~ 页面很简陋，没有定义CSS，去看看吧：http://taohua.sinaapp.com/]]></description>
			<content:encoded><![CDATA[<p><a href="http://taohua.sinaapp.com/" target="_blank">桃花&#8211;Alexa网站排名调用工具</a></p>
<p>今天试用了一下<a href="http://sae.sina.com.cn/" target="_blank">Sina App Engine</a>，顺便做个一个JS调用的<a href="http://taohua.sinaapp.com/" target="_blank">Alexa网站排名工具</a>，数据来自Alexa官网。JS调用，只输出排名数据，可以很方便地用CSS定义样式。</p>
<p>Sina App Engine支持PHP，但是它的curl只能用来调取“http://www.sina.com.cn”域名下的资源，但是幸好有个类似的<a href="http://wiki.sae.sina.com.cn/doku.php?id=sae%E5%BC%80%E5%8F%91%E8%80%85%E6%89%8B%E5%86%8C#数据抓取" target="_blank">Fetchurl服务</a></p>
<p>这个应用被我起名“桃花”，这是我想到一件有意思的事：一个每做个小东西，都起名叫“XX花”，让人一眼能看出是我做的，O(∩_∩)O~</p>
<p>页面很简陋，没有定义CSS，去看看吧：<a href="http://taohua.sinaapp.com/">http://taohua.sinaapp.com/</a></p>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://kisexu.com";
        var wumiiEnableCustomPos = false;
        var wumiiParams = "&#038;num=5&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress3.3.1";
    //--></script><script type="text/javascript" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script><a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;"><img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件，快速提升流量" style="border:0;padding:0;margin:0;" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://kisexu.com/blog/3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

