<?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: Flex and PHP: remoting with Zend AMF</title>
	<atom:link href="http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/feed/" rel="self" type="application/rss+xml" />
	<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/</link>
	<description>Flex, AIR and Rock&#38;Roll</description>
	<lastBuildDate>Sun, 14 Mar 2010 01:49:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Zena</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-9119</link>
		<dc:creator>Zena</dc:creator>
		<pubDate>Wed, 10 Mar 2010 11:47:03 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-9119</guid>
		<description>Thank you for your good tutorial.
It was a big help for a beginner like me.</description>
		<content:encoded><![CDATA[<p>Thank you for your good tutorial.<br />
It was a big help for a beginner like me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-8727</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Sun, 14 Feb 2010 06:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-8727</guid>
		<description>Thanx</description>
		<content:encoded><![CDATA[<p>Thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-8288</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Tue, 05 Jan 2010 19:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-8288</guid>
		<description>@arashaga

This is normal. It happened to me with some browsers...</description>
		<content:encoded><![CDATA[<p>@arashaga</p>
<p>This is normal. It happened to me with some browsers&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arashaga</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-8271</link>
		<dc:creator>arashaga</dc:creator>
		<pubDate>Mon, 04 Jan 2010 22:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-8271</guid>
		<description>i tried to test my endpoint by browsing to index.php but for some reason it asks me to save the application/x-amf file! the index.php is listed as my directorindex in http.cong.
any idea?

thank you very much,</description>
		<content:encoded><![CDATA[<p>i tried to test my endpoint by browsing to index.php but for some reason it asks me to save the application/x-amf file! the index.php is listed as my directorindex in http.cong.<br />
any idea?</p>
<p>thank you very much,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mitch</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-8174</link>
		<dc:creator>mitch</dc:creator>
		<pubDate>Tue, 29 Dec 2009 13:03:39 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-8174</guid>
		<description>Hi. can someone give a suggestion with the follwoing;

I have a Vo using the above example + $childItems_aut which is an array in the object. I create the Vo in php and it contains the $childItems (in my case relations from another table) as child array items to each vo object. 



Now when i use the follwoing in actionscript....

var resultVoObject:Array = new Array();
resultVoObject=  event.result as Array;


The....  id_aut;
         fname_aut;
         lname_aut;

...are all good but i do not get a child array $childItems_aut that contains the child array items, instead a value of NULL

what am i doing wrong?

thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi. can someone give a suggestion with the follwoing;</p>
<p>I have a Vo using the above example + $childItems_aut which is an array in the object. I create the Vo in php and it contains the $childItems (in my case relations from another table) as child array items to each vo object. </p>
<p>Now when i use the follwoing in actionscript&#8230;.</p>
<p>var resultVoObject:Array = new Array();<br />
resultVoObject=  event.result as Array;</p>
<p>The&#8230;.  id_aut;<br />
         fname_aut;<br />
         lname_aut;</p>
<p>&#8230;are all good but i do not get a child array $childItems_aut that contains the child array items, instead a value of NULL</p>
<p>what am i doing wrong?</p>
<p>thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Whippersnapper</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-8094</link>
		<dc:creator>Whippersnapper</dc:creator>
		<pubDate>Mon, 21 Dec 2009 17:26:09 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-8094</guid>
		<description>One reason for the NetConnection.Call.BadVersion error is PHP files that are encoded in other than ANSI. For example UTF-8 will NOT work. Propably because Zend_AMF is encoded in ANSI.

So if you can connect to the gateway file but the response&#039;s content-type isn&#039;t application/x-amf, then check the encoding of your PHP files.</description>
		<content:encoded><![CDATA[<p>One reason for the NetConnection.Call.BadVersion error is PHP files that are encoded in other than ANSI. For example UTF-8 will NOT work. Propably because Zend_AMF is encoded in ANSI.</p>
<p>So if you can connect to the gateway file but the response&#8217;s content-type isn&#8217;t application/x-amf, then check the encoding of your PHP files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-7913</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 12 Dec 2009 02:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-7913</guid>
		<description>In Jan., Steven wrote that he had a problem with the endpoint address. In the services-config file, he had to add &#039;index.php&#039; to the end of the endpoint uri path for it to work. 

Thank you Steven for posting your message, as I had the same problem.

Also, thanks again to Mihai for the great tutorial.

-Chris</description>
		<content:encoded><![CDATA[<p>In Jan., Steven wrote that he had a problem with the endpoint address. In the services-config file, he had to add &#8216;index.php&#8217; to the end of the endpoint uri path for it to work. </p>
<p>Thank you Steven for posting your message, as I had the same problem.</p>
<p>Also, thanks again to Mihai for the great tutorial.</p>
<p>-Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-7251</link>
		<dc:creator>Zach</dc:creator>
		<pubDate>Thu, 12 Nov 2009 03:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-7251</guid>
		<description>Hi,

Any idea how to push data from server-side to flex client using Zend Framework?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Any idea how to push data from server-side to flex client using Zend Framework?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Introduction to ZendAMF &#171; Flex ActionScript Guide Blog</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-7195</link>
		<dc:creator>Introduction to ZendAMF &#171; Flex ActionScript Guide Blog</dc:creator>
		<pubDate>Sun, 08 Nov 2009 09:22:16 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-7195</guid>
		<description>[...] http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/" rel="nofollow">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shivik</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-7168</link>
		<dc:creator>Shivik</dc:creator>
		<pubDate>Thu, 05 Nov 2009 06:17:11 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-7168</guid>
		<description>Hello there

I made the following change in the index.php file.

$server = new Zend_Amf_Server();
$server-&gt;addDirectory(APPLICATION_PATH . &#039;/services&#039;);
echo $server-&gt;handle();

Doing this the flex application displays &quot;Channel Disconnected&quot;. What could be going wrong in this?</description>
		<content:encoded><![CDATA[<p>Hello there</p>
<p>I made the following change in the index.php file.</p>
<p>$server = new Zend_Amf_Server();<br />
$server-&gt;addDirectory(APPLICATION_PATH . &#8216;/services&#8217;);<br />
echo $server-&gt;handle();</p>
<p>Doing this the flex application displays &#8220;Channel Disconnected&#8221;. What could be going wrong in this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan C</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-7153</link>
		<dc:creator>Ryan C</dc:creator>
		<pubDate>Tue, 03 Nov 2009 16:44:34 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-7153</guid>
		<description>Update on my last post. I learned that you must have the VO instantiated somewhere in your code for it to correctly map in Flex. I hope this helps someone along the way...</description>
		<content:encoded><![CDATA[<p>Update on my last post. I learned that you must have the VO instantiated somewhere in your code for it to correctly map in Flex. I hope this helps someone along the way&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan C</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-7120</link>
		<dc:creator>Ryan C</dc:creator>
		<pubDate>Fri, 30 Oct 2009 18:48:46 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-7120</guid>
		<description>Please let me know if you guys have thourghts. I&#039;ve been trying to debug this thing for days now. I have one VO that will mapp from php to flex, but that&#039;s it. I am sending an array of VO&#039;s back into flex. Two are identical except for the name and alias. I&#039;ve also checked in charles and php is sending VO objects... Please help!

UserVO.as &lt;-- this works
package com.ryancanulla.dashboard.login.vo {
	[RemoteClass(alias=&quot;com.ryancanulla.dashboard.login.vo.UserVO&quot;)]
	[Bindable] 
	public class UserVO {
		public var userID:uint;
		public var userEmail:String;
		public var userPassword:String;
		public var userFirstName:String;
		public var userLastName:String;
		
	}
}

UserVO.php


TestVO.as &lt;--not working
package com.ryancanulla.dashboard.login.vo {
	[RemoteClass(alias=&quot;com.ryancanulla.dashboard.login.vo.TestVO&quot;)]
	[Bindable] 
	public class TestVO {
		public var userID:uint;
		public var userEmail:String;
		public var userPassword:String;
		public var userFirstName:String;
		public var userLastName:String;
		
	}
}

TestVO.php


Bootstrap...
	$server-&gt;setClassMap(&#039;com.ryancanulla.dashboard.login.vo.UserVO&#039;, &#039;UserVO&#039;);
	$server-&gt;setClassMap(&#039;com.ryancanulla.dashboard.login.vo.TestVO&#039;, &#039;TestVO&#039;);</description>
		<content:encoded><![CDATA[<p>Please let me know if you guys have thourghts. I&#8217;ve been trying to debug this thing for days now. I have one VO that will mapp from php to flex, but that&#8217;s it. I am sending an array of VO&#8217;s back into flex. Two are identical except for the name and alias. I&#8217;ve also checked in charles and php is sending VO objects&#8230; Please help!</p>
<p>UserVO.as &lt;&#8211; this works<br />
package com.ryancanulla.dashboard.login.vo {<br />
	[RemoteClass(alias=&quot;com.ryancanulla.dashboard.login.vo.UserVO&quot;)]<br />
	[Bindable]<br />
	public class UserVO {<br />
		public var userID:uint;<br />
		public var userEmail:String;<br />
		public var userPassword:String;<br />
		public var userFirstName:String;<br />
		public var userLastName:String;</p>
<p>	}<br />
}</p>
<p>UserVO.php</p>
<p>TestVO.as &lt;&#8211;not working<br />
package com.ryancanulla.dashboard.login.vo {<br />
	[RemoteClass(alias=&quot;com.ryancanulla.dashboard.login.vo.TestVO&quot;)]<br />
	[Bindable]<br />
	public class TestVO {<br />
		public var userID:uint;<br />
		public var userEmail:String;<br />
		public var userPassword:String;<br />
		public var userFirstName:String;<br />
		public var userLastName:String;</p>
<p>	}<br />
}</p>
<p>TestVO.php</p>
<p>Bootstrap&#8230;<br />
	$server-&gt;setClassMap(&#8216;com.ryancanulla.dashboard.login.vo.UserVO&#8217;, &#8216;UserVO&#8217;);<br />
	$server-&gt;setClassMap(&#8216;com.ryancanulla.dashboard.login.vo.TestVO&#8217;, &#8216;TestVO&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan C</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6951</link>
		<dc:creator>Ryan C</dc:creator>
		<pubDate>Wed, 21 Oct 2009 15:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6951</guid>
		<description>I figured it out. I had a ; at the end of the remoteClass MetaData

package com.ryancanulla.dashboard_v2.vo {
	[RemoteClass(alias=&quot;LoginVO&quot;)] &lt;----
	[Bindable]
	public class LoginVO {</description>
		<content:encoded><![CDATA[<p>I figured it out. I had a ; at the end of the remoteClass MetaData</p>
<p>package com.ryancanulla.dashboard_v2.vo {<br />
	[RemoteClass(alias="LoginVO")] &lt;&#8212;-<br />
	[Bindable]<br />
	public class LoginVO {</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan C</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6935</link>
		<dc:creator>Ryan C</dc:creator>
		<pubDate>Tue, 20 Oct 2009 18:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6935</guid>
		<description>Thanks @Mihai..

Are there any general rules? 
- AS class has [RemoteClass(alias=&quot;LoginVO&quot;)];	
- Two VO&#039;s are identical (vars match)
- method returns a strictly typed VO
- Bootstrap sets class 	$server-&gt;setClass(&quot;Test&quot;);
---- Should it call the setCLass method for he VO class?


- Bootstrap sets classMap 
---- $server-&gt;setClassMap(&quot;LoginVO&quot;,&quot;LoginVO&quot;);

Any thoughts are appreciated. I really want to understand what is going on and not just make it work.

Can you have multiple setClass methods, and also multiple setClassMap() functions?</description>
		<content:encoded><![CDATA[<p>Thanks @Mihai..</p>
<p>Are there any general rules?<br />
- AS class has [RemoteClass(alias="LoginVO")];<br />
- Two VO&#8217;s are identical (vars match)<br />
- method returns a strictly typed VO<br />
- Bootstrap sets class 	$server-&gt;setClass(&#8220;Test&#8221;);<br />
&#8212;- Should it call the setCLass method for he VO class?</p>
<p>- Bootstrap sets classMap<br />
&#8212;- $server-&gt;setClassMap(&#8220;LoginVO&#8221;,&#8221;LoginVO&#8221;);</p>
<p>Any thoughts are appreciated. I really want to understand what is going on and not just make it work.</p>
<p>Can you have multiple setClass methods, and also multiple setClassMap() functions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6934</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Tue, 20 Oct 2009 17:52:57 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6934</guid>
		<description>@Ryan C

Most likely the mapping of the PHP VO to AS VO is not done correctly.</description>
		<content:encoded><![CDATA[<p>@Ryan C</p>
<p>Most likely the mapping of the PHP VO to AS VO is not done correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan C</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6933</link>
		<dc:creator>Ryan C</dc:creator>
		<pubDate>Tue, 20 Oct 2009 17:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6933</guid>
		<description>Has anyone had issues where you send in a VO and receive back a generic object typed objectProxy?</description>
		<content:encoded><![CDATA[<p>Has anyone had issues where you send in a VO and receive back a generic object typed objectProxy?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oscaroxy</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6715</link>
		<dc:creator>oscaroxy</dc:creator>
		<pubDate>Wed, 07 Oct 2009 07:57:43 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6715</guid>
		<description>I reduce the time comment all &quot;riquire_once&quot; into file of the Zend folder. 
I create the file &quot;init&quot; where into I create the function:

function __autoload($class_name)  {

	if (strpos($class_name,&quot;Zend&quot;) !== false){
		$arr = split(&quot;_&quot;,$class_name);
		$nome_classe_zend =&quot;&quot;;
		for ($i=0;$i&lt;count($arr);$i++){
			if ($i == count($arr)-1){
				$nome_classe_zend .= $arr[$i] . &quot;.php&quot;;	
			}else{
				$nome_classe_zend .= $arr[$i] . &quot;/&quot;;	
			}
		}
		require($nome_classe_zend);
}
}

that is I load a class only when need.</description>
		<content:encoded><![CDATA[<p>I reduce the time comment all &#8220;riquire_once&#8221; into file of the Zend folder.<br />
I create the file &#8220;init&#8221; where into I create the function:</p>
<p>function __autoload($class_name)  {</p>
<p>	if (strpos($class_name,&#8221;Zend&#8221;) !== false){<br />
		$arr = split(&#8220;_&#8221;,$class_name);<br />
		$nome_classe_zend =&#8221;";<br />
		for ($i=0;$i&lt;count($arr);$i++){<br />
			if ($i == count($arr)-1){<br />
				$nome_classe_zend .= $arr[$i] . &quot;.php&quot;;<br />
			}else{<br />
				$nome_classe_zend .= $arr[$i] . &quot;/&quot;;<br />
			}<br />
		}<br />
		require($nome_classe_zend);<br />
}<br />
}</p>
<p>that is I load a class only when need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leef</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6703</link>
		<dc:creator>leef</dc:creator>
		<pubDate>Tue, 06 Oct 2009 18:52:22 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6703</guid>
		<description>Here&#039;s someone else&#039;s timed results also showing about a 5x duration difference.

http://gfxcomplex.com/video/zend-amf-vs-amph_amfphp-ftw/</description>
		<content:encoded><![CDATA[<p>Here&#8217;s someone else&#8217;s timed results also showing about a 5x duration difference.</p>
<p><a href="http://gfxcomplex.com/video/zend-amf-vs-amph_amfphp-ftw/" rel="nofollow">http://gfxcomplex.com/video/zend-amf-vs-amph_amfphp-ftw/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leef</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6701</link>
		<dc:creator>leef</dc:creator>
		<pubDate>Tue, 06 Oct 2009 18:16:37 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6701</guid>
		<description>I did my tests in Flash, not Flex.</description>
		<content:encoded><![CDATA[<p>I did my tests in Flash, not Flex.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leef</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6700</link>
		<dc:creator>leef</dc:creator>
		<pubDate>Tue, 06 Oct 2009 18:15:48 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6700</guid>
		<description>I also found ZendAMF to be extremely slower than other options.  I used the exact same code (AS3, and PHP) and compared ZendAMF to AMFPHP;  ZendAMF was 5 times slower.  I added this issue tot he ZendAMF bug-tracker, and have not seen any progress from the developer.

http://framework.zend.com/issues/browse/ZF-7493</description>
		<content:encoded><![CDATA[<p>I also found ZendAMF to be extremely slower than other options.  I used the exact same code (AS3, and PHP) and compared ZendAMF to AMFPHP;  ZendAMF was 5 times slower.  I added this issue tot he ZendAMF bug-tracker, and have not seen any progress from the developer.</p>
<p><a href="http://framework.zend.com/issues/browse/ZF-7493" rel="nofollow">http://framework.zend.com/issues/browse/ZF-7493</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThibautG</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6444</link>
		<dc:creator>ThibautG</dc:creator>
		<pubDate>Sat, 12 Sep 2009 22:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6444</guid>
		<description>Hello Mihai,
I have a problem that I can&#039;t resolve.
First I would tell that I have done your tutorial, and it works perfectly with several class in php, as, and several services.
Everything worked fine until this evening: I want to recover datas with a &quot;SELECT FROM ...&quot; query and put them into a datagrid in Flex.
So I made a new class (VOTrainingRating) in as and php, but when I execute the code I have the error: 
ArgumentError: Error #1063: Argument count mismatch on org.vo::VOTrainingRating(). Expected 8, got 0.

The function: org.vo::VOTrainingRating()  is the constructor of the class VOTrainingRating.as.
The problem is : I never instanciate this class.
Just One time : in the php class. But, we agree, the &quot;new VOTrainingRating()&quot; in my php class refers to my php class.... and not to my as class..
So Why Do I this message please ?
I would precise that when I broke the alias in my .as file (I remove the line [RemoteClass (alias=&quot;VOTrainingRating&quot;)]), I have no longer the error, and I recover perfectly the datas..
So it seems that when I instanciate my class in php, It instanciate the class in .as, and when I remove the alias, it does not, it works fine ....
I would recall that this code (TrainingRatingService.php, VOTrainingRating.php, VOTrainingRating.as) looks like the code I have already done for all others class /services in my project..


I don&#039;t know how I can resolve that.
Do you know how I could please ?
Thanks.</description>
		<content:encoded><![CDATA[<p>Hello Mihai,<br />
I have a problem that I can&#8217;t resolve.<br />
First I would tell that I have done your tutorial, and it works perfectly with several class in php, as, and several services.<br />
Everything worked fine until this evening: I want to recover datas with a &#8220;SELECT FROM &#8230;&#8221; query and put them into a datagrid in Flex.<br />
So I made a new class (VOTrainingRating) in as and php, but when I execute the code I have the error:<br />
ArgumentError: Error #1063: Argument count mismatch on org.vo::VOTrainingRating(). Expected 8, got 0.</p>
<p>The function: org.vo::VOTrainingRating()  is the constructor of the class VOTrainingRating.as.<br />
The problem is : I never instanciate this class.<br />
Just One time : in the php class. But, we agree, the &#8220;new VOTrainingRating()&#8221; in my php class refers to my php class&#8230;. and not to my as class..<br />
So Why Do I this message please ?<br />
I would precise that when I broke the alias in my .as file (I remove the line [RemoteClass (alias="VOTrainingRating")]), I have no longer the error, and I recover perfectly the datas..<br />
So it seems that when I instanciate my class in php, It instanciate the class in .as, and when I remove the alias, it does not, it works fine &#8230;.<br />
I would recall that this code (TrainingRatingService.php, VOTrainingRating.php, VOTrainingRating.as) looks like the code I have already done for all others class /services in my project..</p>
<p>I don&#8217;t know how I can resolve that.<br />
Do you know how I could please ?<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hanx</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6420</link>
		<dc:creator>hanx</dc:creator>
		<pubDate>Thu, 10 Sep 2009 15:40:20 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6420</guid>
		<description>&quot;Can you use ini_set()?
or maybe using set_include_path:
http://ro.php.net/manual/en/function.set-include-path.php&quot;

where should I put the ini_set() function? on my service php file or on my gateway.php?</description>
		<content:encoded><![CDATA[<p>&#8220;Can you use ini_set()?<br />
or maybe using set_include_path:<br />
<a href="http://ro.php.net/manual/en/function.set-include-path.php" rel="nofollow">http://ro.php.net/manual/en/function.set-include-path.php</a>&#8221;</p>
<p>where should I put the ini_set() function? on my service php file or on my gateway.php?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boris</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6419</link>
		<dc:creator>Boris</dc:creator>
		<pubDate>Thu, 10 Sep 2009 14:54:25 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6419</guid>
		<description>Hi Mihai,

some progress here but it drives me crazy. 

I have changed FLEX approach to call Zend_AMF. Instead of RemoteObject I tried to use NetConnection object and its call() method. 18 000 rows are returned within 14 secs. :-))) 6 times faster than with RemoteObject. Have you any idea what should be the reason for such as difference between RemoteObject and NetConnection when using Zend_AMF?

Boris</description>
		<content:encoded><![CDATA[<p>Hi Mihai,</p>
<p>some progress here but it drives me crazy. </p>
<p>I have changed FLEX approach to call Zend_AMF. Instead of RemoteObject I tried to use NetConnection object and its call() method. 18 000 rows are returned within 14 secs. <img src='http://corlan.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )) 6 times faster than with RemoteObject. Have you any idea what should be the reason for such as difference between RemoteObject and NetConnection when using Zend_AMF?</p>
<p>Boris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boris</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6393</link>
		<dc:creator>Boris</dc:creator>
		<pubDate>Wed, 09 Sep 2009 08:20:17 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6393</guid>
		<description>Hi Mihai,

thanks for your answer. Of course I am aware of james ward benchmark from your tutorial and that was my primary reason to start to use AMF. :-) 

Meanwhile I have done some deeper exploration and realized that problem is definitely at client side. I tunded my PHP script by some echo current time instruction on its start and end to see in browser what time is consumed by php. Independently if I return XML string or AMF array time seems to be the same. 

Additionaly I added some Aler.show instructions into FLEX to places where I call remote object method and also into result listener. Time between call a dispatching result handler linearly grows based on amount of returned data. As mentioned before for 18000 rows is 6 times slower than when using HTTPService and XML. Strange of that is that time between remote object call and result listener is out of my control. This time is a black box of AMF implementation in FLEX. Additionaly I have pure testing application which does nothing else just waitng until remote object recieved data. 

I am sending framents of codes to show that I do nothing special.


  


in PHP i have class HotlineDS with public function getHotlineData

services-config.xml looks like 



    
        
            
                
                    
                
                
                    *
                
            
        
    
    
        
            
        
    


index.php contains code to manage Zend_AMF server and sets the class HotlineDS. Additinaly maps VO classes between flex and php. Same code you heve in tutorial just own classes.

It really seems that my FLEX has resource lack to unserialize large AMF data. Is there any parameter at OS, internet explorer, FLASH level which can help? I am using Windows Vista, IE.

Boris</description>
		<content:encoded><![CDATA[<p>Hi Mihai,</p>
<p>thanks for your answer. Of course I am aware of james ward benchmark from your tutorial and that was my primary reason to start to use AMF. <img src='http://corlan.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<p>Meanwhile I have done some deeper exploration and realized that problem is definitely at client side. I tunded my PHP script by some echo current time instruction on its start and end to see in browser what time is consumed by php. Independently if I return XML string or AMF array time seems to be the same. </p>
<p>Additionaly I added some Aler.show instructions into FLEX to places where I call remote object method and also into result listener. Time between call a dispatching result handler linearly grows based on amount of returned data. As mentioned before for 18000 rows is 6 times slower than when using HTTPService and XML. Strange of that is that time between remote object call and result listener is out of my control. This time is a black box of AMF implementation in FLEX. Additionaly I have pure testing application which does nothing else just waitng until remote object recieved data. </p>
<p>I am sending framents of codes to show that I do nothing special.</p>
<p>in PHP i have class HotlineDS with public function getHotlineData</p>
<p>services-config.xml looks like </p>
<p>                    *</p>
<p>index.php contains code to manage Zend_AMF server and sets the class HotlineDS. Additinaly maps VO classes between flex and php. Same code you heve in tutorial just own classes.</p>
<p>It really seems that my FLEX has resource lack to unserialize large AMF data. Is there any parameter at OS, internet explorer, FLASH level which can help? I am using Windows Vista, IE.</p>
<p>Boris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6376</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Tue, 08 Sep 2009 20:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6376</guid>
		<description>@Boris

To tell you the truth I am surprise by the results. Here is a test created by James Ward where you can test various ways of bringing data. I choose 20.000 rows with AMF and it was faster than Flex XML (E4X) 5.000 rows.
You can play around with the test here:
http://www.jamesward.com/census/

Coming back to your question, there are couple of reasons why AMF is faster than XML:
- serializing to XML takes more than to AMF
- the bandwidth could even 10 times less for AMF, because of the binary format and other compressions techniques (the same string is serialized only once, than referenced for example).

In conclusion, I don&#039;t know what to say about your example. Maybe you could send me the project to have a look at it.</description>
		<content:encoded><![CDATA[<p>@Boris</p>
<p>To tell you the truth I am surprise by the results. Here is a test created by James Ward where you can test various ways of bringing data. I choose 20.000 rows with AMF and it was faster than Flex XML (E4X) 5.000 rows.<br />
You can play around with the test here:<br />
<a href="http://www.jamesward.com/census/" rel="nofollow">http://www.jamesward.com/census/</a></p>
<p>Coming back to your question, there are couple of reasons why AMF is faster than XML:<br />
- serializing to XML takes more than to AMF<br />
- the bandwidth could even 10 times less for AMF, because of the binary format and other compressions techniques (the same string is serialized only once, than referenced for example).</p>
<p>In conclusion, I don&#8217;t know what to say about your example. Maybe you could send me the project to have a look at it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boris</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6375</link>
		<dc:creator>Boris</dc:creator>
		<pubDate>Tue, 08 Sep 2009 19:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6375</guid>
		<description>Hi Mihai,

first of all thank you for that tutorial. I&#039;m new at FLEX and it was really helpfull when starting to use it. 

However tutorial is great I&#039;m a bit surprised about AMF. Probably I do something wrong or not undersood AMF purpose properly because I have following problem. 

Based on your tutorial I have built simple project to retrieve huge bunch of data (approx. 18000 rows, Zend_AMF in PHP) and provide them into FLEX application. It works but seems to be teribly slow (approx. 2 minutes until completed result set is available in FLEX). So I started to experiment with other options, meaning pure XML, and was surprised that same amount of data are retrived into FLEX within 20 secs. 

As far as I understood AMF should be signficantly faster then XML but it seems it is not in my case. Or, and it is probably the case, I&#039;m using AMF for wrong purpose. I understand that whole serialization proces of object takes some time and probably doesnt make sense to create value objects for 18000 rows just to retrieve them to FLEX. Might be XML should be used for such as purpose. If so what is purpose of AMF then? 

Thank you for opinion. 
Boris</description>
		<content:encoded><![CDATA[<p>Hi Mihai,</p>
<p>first of all thank you for that tutorial. I&#8217;m new at FLEX and it was really helpfull when starting to use it. </p>
<p>However tutorial is great I&#8217;m a bit surprised about AMF. Probably I do something wrong or not undersood AMF purpose properly because I have following problem. </p>
<p>Based on your tutorial I have built simple project to retrieve huge bunch of data (approx. 18000 rows, Zend_AMF in PHP) and provide them into FLEX application. It works but seems to be teribly slow (approx. 2 minutes until completed result set is available in FLEX). So I started to experiment with other options, meaning pure XML, and was surprised that same amount of data are retrived into FLEX within 20 secs. </p>
<p>As far as I understood AMF should be signficantly faster then XML but it seems it is not in my case. Or, and it is probably the case, I&#8217;m using AMF for wrong purpose. I understand that whole serialization proces of object takes some time and probably doesnt make sense to create value objects for 18000 rows just to retrieve them to FLEX. Might be XML should be used for such as purpose. If so what is purpose of AMF then? </p>
<p>Thank you for opinion.<br />
Boris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Primeros pasos con Zend AMF y Flex 3 &#171; Xyberia</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6352</link>
		<dc:creator>Primeros pasos con Zend AMF y Flex 3 &#171; Xyberia</dc:creator>
		<pubDate>Mon, 07 Sep 2009 17:09:32 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6352</guid>
		<description>[...] y Flex&#160;3  Publicado el Septiembre 7, 2009 por xyrer   Todo el día de ayer estuve siguiendo el tutorial de Mihai Corlan acerca de como usar Zend Framework y Flex Builder 3, es una aplicación que llama unos datos a un [...]</description>
		<content:encoded><![CDATA[<p>[...] y Flex&nbsp;3  Publicado el Septiembre 7, 2009 por xyrer   Todo el día de ayer estuve siguiendo el tutorial de Mihai Corlan acerca de como usar Zend Framework y Flex Builder 3, es una aplicación que llama unos datos a un [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6334</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Sun, 06 Sep 2009 20:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6334</guid>
		<description>@hanx

Can you use ini_set()?
or maybe using set_include_path:
http://ro.php.net/manual/en/function.set-include-path.php</description>
		<content:encoded><![CDATA[<p>@hanx</p>
<p>Can you use ini_set()?<br />
or maybe using set_include_path:<br />
<a href="http://ro.php.net/manual/en/function.set-include-path.php" rel="nofollow">http://ro.php.net/manual/en/function.set-include-path.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hanx</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-6295</link>
		<dc:creator>hanx</dc:creator>
		<pubDate>Fri, 04 Sep 2009 16:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-6295</guid>
		<description>what if we can access the php.ini to setup Zend?, some hosting don&#039;t provide access to php.ini...</description>
		<content:encoded><![CDATA[<p>what if we can access the php.ini to setup Zend?, some hosting don&#8217;t provide access to php.ini&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-5752</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 04 Aug 2009 15:31:21 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-5752</guid>
		<description>@Mihai

Thank you for the info! As I understood it, I need to change the endpoint URL.

All the best,
Chris</description>
		<content:encoded><![CDATA[<p>@Mihai</p>
<p>Thank you for the info! As I understood it, I need to change the endpoint URL.</p>
<p>All the best,<br />
Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-5750</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Tue, 04 Aug 2009 11:41:59 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-5750</guid>
		<description>@Chris

First of all you need to install Zend Framework on the live server, then you have to check that the URL for the RemoteObject are still OK (if you used absolute URL, you&#039;ll have to change the value and recompile the application).</description>
		<content:encoded><![CDATA[<p>@Chris</p>
<p>First of all you need to install Zend Framework on the live server, then you have to check that the URL for the RemoteObject are still OK (if you used absolute URL, you&#8217;ll have to change the value and recompile the application).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-5740</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 03 Aug 2009 21:12:08 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-5740</guid>
		<description>Hello Mihai,

I followed your excellent tutorial and Zend AMF is working perfectly on my localhost. Now I have to deploy my site to the server. What do I need to do in order to deploy it to the server? What needs to be changed? I plan to use Host Gator. Thank you.

Best regards,
Chris</description>
		<content:encoded><![CDATA[<p>Hello Mihai,</p>
<p>I followed your excellent tutorial and Zend AMF is working perfectly on my localhost. Now I have to deploy my site to the server. What do I need to do in order to deploy it to the server? What needs to be changed? I plan to use Host Gator. Thank you.</p>
<p>Best regards,<br />
Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-5739</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 03 Aug 2009 21:11:25 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-5739</guid>
		<description>Hello Mihai,

I followed your excellent tutorial and Zend AMF is working perfectly on my localhost. Now I have to deploy my site to the server. What do I need to do in order to deploy it to the server? What needs to be changed? I plan to use Host Gator.</description>
		<content:encoded><![CDATA[<p>Hello Mihai,</p>
<p>I followed your excellent tutorial and Zend AMF is working perfectly on my localhost. Now I have to deploy my site to the server. What do I need to do in order to deploy it to the server? What needs to be changed? I plan to use Host Gator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThibautG</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-5713</link>
		<dc:creator>ThibautG</dc:creator>
		<pubDate>Sat, 01 Aug 2009 16:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-5713</guid>
		<description>Hello Mihai,

first of all, congratulation for your Tuto !

My question is : is there a way to have a concurrency call issue on a service (not on a remote object, that can be resolved by the &quot;concurrency&quot; property)?

I mean : I have 2 components that have  their own remote object. But these 2 remote objects call the same service.php.


It appears that when my 2 remote objects are called sensibly at the same time (on the preinitialize event of each component), the 2 service calls fail, but when one is called on preinitialize, and the second on creationComplete, just the second remote object fails...

Am I right that there could be a concurrency issue on that call?

If right, what workaround can I do please ?

Thx :)</description>
		<content:encoded><![CDATA[<p>Hello Mihai,</p>
<p>first of all, congratulation for your Tuto !</p>
<p>My question is : is there a way to have a concurrency call issue on a service (not on a remote object, that can be resolved by the &#8220;concurrency&#8221; property)?</p>
<p>I mean : I have 2 components that have  their own remote object. But these 2 remote objects call the same service.php.</p>
<p>It appears that when my 2 remote objects are called sensibly at the same time (on the preinitialize event of each component), the 2 service calls fail, but when one is called on preinitialize, and the second on creationComplete, just the second remote object fails&#8230;</p>
<p>Am I right that there could be a concurrency issue on that call?</p>
<p>If right, what workaround can I do please ?</p>
<p>Thx <img src='http://corlan.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-3/#comment-5708</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Sat, 01 Aug 2009 06:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/#comment-5708</guid>
		<description>@Ryan Canulla

When I saying testing the PHP class methods in browser, what I mean is to write couple of PHP lines that use your class and its methods (of course you have to set the PHP to show at least errors). And if everything works, you know that any problem might be it&#039;s not from the PHP class.</description>
		<content:encoded><![CDATA[<p>@Ryan Canulla</p>
<p>When I saying testing the PHP class methods in browser, what I mean is to write couple of PHP lines that use your class and its methods (of course you have to set the PHP to show at least errors). And if everything works, you know that any problem might be it&#8217;s not from the PHP class.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
