<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: More PHP goodies</title>
	<atom:link href="http://aralbalkan.com/818/feed" rel="self" type="application/rss+xml" />
	<link>http://aralbalkan.com/818</link>
	<description>Changing the world through technology and oratory.</description>
	<pubDate>Fri, 21 Nov 2008 23:44:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7-beta2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Patrick Mineault</title>
		<link>http://aralbalkan.com/818/comment-page-1#comment-8476</link>
		<dc:creator>Patrick Mineault</dc:creator>
		<pubDate>Thu, 21 Dec 2006 15:50:15 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/818#comment-8476</guid>
		<description>You take a look at the samples.MochiTest in the service browser here:

http://5etdemi.com/amfphp2/browser/

As you can see, getTable returns an ArrayCollection in AMF3 mode. In JSON mode, it returns an object with a columns array and a rows array. You can see it live here:

http://5etdemi.com/amfphp2/samples/ajaxtables/
http://5etdemi.com/amfphp2/samples/spry/

You can take a look at it in Charles or ServiceCapture, it's the same service and the same amfphp install running both. The getTable function looks like this:

	function getTable()
	{
	    $table = mysql_query("SELECT * FROM domains");
	    return $table;
	}

With the connection and the db selection being done in the class constructor.</description>
		<content:encoded><![CDATA[<p>You take a look at the samples.MochiTest in the service browser here:</p>
<p><a href="http://5etdemi.com/amfphp2/browser/" rel="nofollow">http://5etdemi.com/amfphp2/browser/</a></p>
<p>As you can see, getTable returns an ArrayCollection in AMF3 mode. In JSON mode, it returns an object with a columns array and a rows array. You can see it live here:</p>
<p><a href="http://5etdemi.com/amfphp2/samples/ajaxtables/" rel="nofollow">http://5etdemi.com/amfphp2/samples/ajaxtables/</a><br />
<a href="http://5etdemi.com/amfphp2/samples/spry/" rel="nofollow">http://5etdemi.com/amfphp2/samples/spry/</a></p>
<p>You can take a look at it in Charles or ServiceCapture, it&#8217;s the same service and the same amfphp install running both. The getTable function looks like this:</p>
<p>	function getTable()<br />
	{<br />
	    $table = mysql_query(&#8221;SELECT * FROM domains&#8221;);<br />
	    return $table;<br />
	}</p>
<p>With the connection and the db selection being done in the class constructor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan</title>
		<link>http://aralbalkan.com/818/comment-page-1#comment-8471</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Thu, 21 Dec 2006 14:10:15 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/818#comment-8471</guid>
		<description>yeah... i took a look at the new amfphp and it looks really good... thanks for all the hard work patrick!

flash and php are my best friends at the moment... and thanks for the post aral... i'm always on the look out for some good php classes....</description>
		<content:encoded><![CDATA[<p>yeah&#8230; i took a look at the new amfphp and it looks really good&#8230; thanks for all the hard work patrick!</p>
<p>flash and php are my best friends at the moment&#8230; and thanks for the post aral&#8230; i&#8217;m always on the look out for some good php classes&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aral</title>
		<link>http://aralbalkan.com/818/comment-page-1#comment-8466</link>
		<dc:creator>aral</dc:creator>
		<pubDate>Thu, 21 Dec 2006 11:49:14 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/818#comment-8466</guid>
		<description>Hmm, so maybe I should be using Amfphp for the little app I'm making. Good call. I'd started it before you released the version with JSON so I hadn't even considered it. Thanks!</description>
		<content:encoded><![CDATA[<p>Hmm, so maybe I should be using Amfphp for the little app I&#8217;m making. Good call. I&#8217;d started it before you released the version with JSON so I hadn&#8217;t even considered it. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Mineault</title>
		<link>http://aralbalkan.com/818/comment-page-1#comment-8452</link>
		<dc:creator>Patrick Mineault</dc:creator>
		<pubDate>Thu, 21 Dec 2006 02:36:04 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/818#comment-8452</guid>
		<description>Serializing recordsets in amfphp in JSON mode goes through the same adapters as it does in amf mode, so you don't have to inspect the inner data, just return mysql_query, and it'll work like it does in the regular amfphp, btw.</description>
		<content:encoded><![CDATA[<p>Serializing recordsets in amfphp in JSON mode goes through the same adapters as it does in amf mode, so you don&#8217;t have to inspect the inner data, just return mysql_query, and it&#8217;ll work like it does in the regular amfphp, btw.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flashape</title>
		<link>http://aralbalkan.com/818/comment-page-1#comment-8445</link>
		<dc:creator>flashape</dc:creator>
		<pubDate>Wed, 20 Dec 2006 22:24:50 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/818#comment-8445</guid>
		<description>nice, good stuff.</description>
		<content:encoded><![CDATA[<p>nice, good stuff.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
