<?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://newsn.net/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://newsn.net</link>
	<description>苏南的网络日记本本  O(∩_∩)O  哈哈~</description>
	<lastBuildDate>Mon, 13 Jul 2009 02:59:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fatal error: Allowed memory size of 8388608 bytes exhausted</title>
		<link>http://newsn.net/20090701/730.html</link>
		<comments>http://newsn.net/20090701/730.html#comments</comments>
		<pubDate>Wed, 01 Jul 2009 09:25:47 +0000</pubDate>
		<dc:creator>苏南</dc:creator>
				<category><![CDATA[IT.IT]]></category>
		<category><![CDATA[服务器软件]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://newsn.net/20090701/730.html</guid>
		<description><![CDATA[Php报错，Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 40961 bytes)
 
修改了php.ini中的
memory_limit = 12M
就行了…，不过程序貌似耗费de资源太多了…
]]></description>
		<wfw:commentRss>http://newsn.net/20090701/730.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php自定义字符串分界符代替双引号分界符</title>
		<link>http://newsn.net/20090520/447.html</link>
		<comments>http://newsn.net/20090520/447.html#comments</comments>
		<pubDate>Wed, 20 May 2009 02:04:23 +0000</pubDate>
		<dc:creator>苏南</dc:creator>
				<category><![CDATA[IT.IT]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://newsn.net/20090520/447.html</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160; php里面默认使用双引号或者单引号做字符串分割，这样当字符串里面出现对应的单双引号的时候，就必须使用”\”转义符，才不至于报错。这个东东虽然看起来有些不爽，但是比较已经习惯了，今天看到一个不用写转义符的办法，就是自定义分界符字符串的办法。看上去很不错，记录一下。
 
一、使用范例     范例如下：     
$vrl=&#34;http://baidu.com&#34;;
echo &#34;
  &#60;a href=\&#34;$vrl\&#34;&#62;百度网站&#60;/a&#62;
&#34;;
echo &#60;&#60;&#60; test
  &#60;a href=&#34;$vrl&#34;&#62;百度网站&#60;/a&#62;
  test;123
test;
二、一点点解释 
&#160;&#160;&#160;&#160;&#160; 可以看到，双引号单引号啥的都不用转义了。hoho，这对于输出html字符串的时候真是一个天大的好消息。而且这个自定义的字符串如果在正文部分出现的话，也不用做转义哦，相当的不错。见上例中的“test”。这个“test”就是个自定义的分界符，它紧跟在”&#60;&#60;&#60;”后面，而最后以“自定义符号；”结束。当然这个结束时以最后一个出现的做匹配的，期间出现的类似东东都会输出哦。不错的说。
三、一点点小问题 
&#160;&#160;&#160;&#160;&#160; 在这里里面，搞变量的时候，出现了了个小插曲，一个变量后面紧接了一个普通字符串，这个时候就报错了。如：$this-&#62;webroot.”test/”。因为这种特殊定义的分界符会使””具有的特殊含义失去。所以这里如果写成$this-&#62;webroottest/或者$this-&#62;webroot.”test/”报错的说。真是有利又有弊啊。我看网上的解决方法是，先赋值到一个变量，然后再到这个echo中引用这个变量。如： 
$js=$this-&#62;webroot.”test/”;
echo &#60;&#60;&#60; test
&#60;script src=’$js’&#62;&#60;/script&#62;
test; 
后来jack说，可以使用{}把变量包裹起来，就行了。试了试，果然好用。hoho。 
echo &#60;&#60;&#60; test
&#60;script src=’{$this-&#62;webroot}test/’&#62;&#60;/script&#62;
test;
又试验发现，如果这个结束符不顶格写，而是前面有空格的话，是会报错的说。很是崩溃。
]]></description>
		<wfw:commentRss>http://newsn.net/20090520/447.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
