<?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>Dream☆Wing &#187; amfphp</title>
	<atom:link href="http://www.dreamwing.org/tag/amfphp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dreamwing.org</link>
	<description></description>
	<lastBuildDate>Sat, 05 Nov 2011 17:23:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>amfphp之php</title>
		<link>http://www.dreamwing.org/php/amfphp_notes.html</link>
		<comments>http://www.dreamwing.org/php/amfphp_notes.html#comments</comments>
		<pubDate>Wed, 17 Dec 2008 09:13:32 +0000</pubDate>
		<dc:creator>Dream☆Wing</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[amfphp]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.dreamwing.org/?p=456</guid>
		<description><![CDATA[http://www.amfphp.org/
1.php接口文件名必须和类名相同
例如：paint.php中的类必须用class paint{&#8230;}
2.php接口文件放置在amfphp/services/下即可通过Flex调用
PS:可以在amfphp/browser/index.html调试接口
PPS:可以在globals.php更改$servicesPath
3.如果接口返回中文字符的话，需要在amfphp/gateway.php的line127 设置对应的字符串编码
例如：$gateway-&#62;setCharsetHandler(&#8221;utf8_decode&#8221;, &#8220;UTF-8&#8243;, &#8220;UTF-8&#8243;);
4.php接口中全局变量的问题（连续2次问题都因此）
amfphp在调用php接口时是把这个接口文件include到amfphp本身的类里，所以include的时候就会出现在函数里global声明的变量获取不到，需要改成在声明该全局变量时就声明该变量global
详见http://cn2.php.net/manual/en/language.variables.scope.php#63500
5.如果加载大数据失败的话，可以调整amfphp/gateway.php的line151，把20调的更大些
比如$gateway-&#62;enableGzipCompression(200*1024);
6.gateway类的service方法会输出自己的header，如果对应的services也输出header信息的话可能会在ie7下报错。(bug#1076)
]]></description>
		<wfw:commentRss>http://www.dreamwing.org/php/amfphp_notes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

