Zend AMF

December 18th, 2008

Official: Zend Framework 

Tutorials
Examples
All of the examples that I use in my screen casts and webinars updated in one archive. I have been extensively using Flex 4 gumbo and will never go back therefore the examples for flex use the new sdk. Download it from opensource.adobelabs.com here and add it to your flex builder project.
What is Zend?
Zend is a company that develops a wide array of solutions for PHP developers. They make Zend Studio, which is an Eclipse-based IDE for doing PHP development. Adobe has announced that they are working with Zend so developers will be able to install the Flex 3 Eclipse plug-in into Zend Studio for tight integration. The Zend Framework is a combination of an MVC framework in addition to a wide variety of utilities for doing everything from connecting to Flickr to database interaction. 
What is Zend Framework?
Zend Framework is a simple, straightforward, open-source software framework for PHP 5 designed to eliminate the tedious details of coding and let you focus on the big picture. Its strength is in its highly-modular MVC design, making your code more reusable and easier to maintain.

  1. David Priest
    January 5th, 2009 at 14:12 | #1

    Happy New Year Wade,

    I thoroughly enjoyed your webcast on the framework last year and have begun a port of our application from AMFPHP to Zend.

    Alas,

    I’m stuck at something (likely trivial) and would appreciate a pointer on where to seek help.

    Following the Zend setup and get Apache error…

    client denied by server configuration: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/QuickStart/public/.htaccess

    I’ve added

    LoadModule rewrite_module modules/mod_rewrite.so
    RewriteEngine on

    and

    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all

    to httpd.conf to no avail

    A point in the right direction – or the forum to post on would be most appreciated.

    Sincerely,

    David Priest

  2. January 5th, 2009 at 22:56 | #2
  3. Shinan
    January 7th, 2009 at 08:55 | #3

    Wade,
    The webcast was great. Thanks for you hard work with AMFPHP and Zend_AMF. Is there a log of the question and answers for the webcast? I can’t remember your response to my question about AMFEXT. Are there any plans for Zend to work on a new AMFEXT? And is the current AMFEXT compatible with Zend_Amf. I apologize for the repetition here but I’m not sure you remember me asking the question.

    Thank You.

  4. January 7th, 2009 at 09:49 | #4

    AMFEXT Support is on the plate and the design of Zend_Amf is to make sure that we can easily add the extension. We are currently trying to make sure that all bugs are fixed and couple features that people really need to make it work in there applications.

  5. Shinan
    January 7th, 2009 at 10:36 | #5

    That is fantastic. Thanks!

  6. Piotr Walczyszyn
    January 24th, 2009 at 14:11 | #6

    Hi Wade,
    I’m having a problem to send AS class object (this class doesn’t have mapping on PHP side) it is only mapped in AS [RemoteClass(alias="MyClass")].

    It works the other way if I return from PHP I just receive dynamic object on Flerx side. Can it be done the other way around?

    Best,
    Piotr

  7. January 26th, 2009 at 01:53 | #7

    Hi Wade,

    Thanks for the great work on Zend_Amf and AMFPHP.
    I’m having to update a project that was built some time back in AS1 using Adobe’s (Macromedia then) Remoting framework for AS1. I’ve been able to port my (old) AMFPHP code across to seemingly work with Zend_Amf but haven’t as yet worked out how I can have my mysql results typed as AMF0 RecordSet’s. I know that AMFPHP simply created an associate array or object using an adapter – is there any way built in to Zend_Amf to achieve the same or do I need to emulate the AMFPHP adapter?
    Thanks in advance for any help you can offer.
    Cheers

  8. Jesper Stærkær
    February 1st, 2009 at 04:02 | #8

    Hi.
    Can I use Zend_Amf together with Flash Media Server, doing remote calls serverside? FMS have a NetConnection-class that should do the trick. I have found a few articles about FMS and AMFPHP, but none about Zend_Amf. Would be nice to know if/how this is possible to do, before i use several hours just trying, having no clue at all.

    Thanks again.
    Jesper

  9. patrick
    February 10th, 2009 at 07:24 | #9

    Hi Wade,

    I am developing a Flex/Zend Framework website. For compatibility reasons, the home page is in XHTML and I’m loading the Flex swf in the background, using the htmlFlash ZF Helper. Unless I disable the server calls, Flash Player returns an unknown file type error.

    My server being at mysite.com/remote , for each call a text file called ‘remote’ is returned . This seems to create the problem wit FP 10.

    Is there any way to append a file extension name to the text file returned by Zend Amf?

    If I load the site directly in Flex, the problem doesn’t happen, I could also make the calls after the Flex page is accessible but both solutions defeats the purpose of preloading the content within the HTML page.

    Any ideas?

    Thanks !

    Patrick

  10. patrick
    February 10th, 2009 at 18:45 | #10

    Hi Wade,

    Oops, sorry, wrong culprit, nothing to do with Zend Amf!…

    Best!

    Patrick

  11. jeff
    February 20th, 2009 at 01:22 | #11

    Any chance you could do an updated tutorial on connecting zend with Flash? Lee’s code doesn’t work anymore as there must have been some changes to the framework from 1.6 to 1.7.

  12. lunacafu
    April 2nd, 2009 at 09:17 | #12

    Now that I have switched from amfphp this interesting fileupload concept comes up

    http://gertonscorner.wordpress.com/2009/03/15/fileupload-using-amfphp-remoteobject-and-flash-10/

    A simple tutorial uploading file(s) with zend_amf using the zend framework would be great!

  13. Martin
    April 23rd, 2009 at 17:51 | #13

    Hi Wade,

    one question about ZendAMF and the integration of Flex (AS3) with PHP5.
    What is the sense of definining Value Objects in PHP and perform all the explicit class mapping with AS3 classes, when type checking is not enforced anyways?

    Example: I create a Contact object in PHP, add some non-member variables and send it via ZendAMF to Flex. There it will still be recognised as a valid Contact object.

    In addition, the setClassMapping method does not care if the Flex and PHP Object actually looks alike.

    Is there a function, which checks if an object really only defines member defined in the class (PHP and AS3)?

    Otherwise I dont understand the whole concept of binding the classes, when I am anyways able to send whatever I want an the serialized object will comply (whatsoever it contains) as a valid object.

    Thanks,
    Martin

  14. Shai
    April 28th, 2009 at 14:49 | #14

    Hi Wade,

    Thanks to your wonderful work, I have been able to communicate between flash and php. I am running into a couple of problems and was hoping you could give me some insight on what to do.

    I am using zend_db_table to interact with my database. To do things like insert, I need to pass in an array. Since flash suggests to use objects I have been passing into php objects and type casting them to arrays. This works if everything is perfect, but I am also validating the parameters – php does the validation for the front end of the flash app to report. I am using Zend_filter_input for the validation.

    My original thought was to throw errors and pass back the zend_filter_input error array to flash. In flash I get the NetConnection.Call.BadVersion when I throw an exception and am passing in an object (and meet the criteria for an exception to be thrown).

    I couldn’t get around this so my next thought was to pass back an object to flash as a normal return, but flash is not able to parse through the object (I’m guessing it doesn’t receive it correctly).

    So lastly I attempted to do a classMap, but my poor knowledge of flash as3 has hindered me sorely. All the examples with class mapping are in flex and I can’t seem to make the adjustment for flash.

    Any help on the matter would be greatly appreciated. I’ve been banging away at this, and I get the sense that a stepback and question could help.

    Thanks in advance,

    Shai

  15. Eric Heimburg
    May 6th, 2009 at 16:53 | #15

    Hi Wade, thanks a ton for your work on Zend AMF! I was wondering if you can point me towards how I would send responses of binary data. Using the native PHP strings I can send binary data just fine, and can see that it is being sent correctly over the wire. However, when it’s received by my Flex app, it becomes truncated at the first null character (!) and the rest is lost. I guess that I need to send it on the wire as a ByteArray type… but I can’t figure out how to make Zend AMF do this. Could you give me a clue how to proceed?

  16. nkader
    June 11th, 2009 at 11:09 | #16

    Some interesting tests on transfering data in flex indicated to me that AMF may not be the fastest way.

    http://www.remwebdevelopment.com/dev/a39/Flex-The-Fastest-Way-to-Transfer-Data.html

  17. Wade Arnold
    June 12th, 2009 at 00:14 | #17

    I don’t care what anyone else says about you. You are doing great work with Zend AMF. If we cross paths I will buy you a drink. Seriously, heroes work you are doing, because without this I would not be using/coding/or even looking at Flex.

  18. June 12th, 2009 at 20:57 | #18

    Need some help!!!

    My Error is:
    [RPC Fault faultString="Channel disconnected" faultCode="Client.Error.DeliveryInDoubt" faultDetail="Channel disconnected before an acknowledgement was received"]
    .
    .
    .

    Here is my Code:
    VO – PHP

    VO – AS3
    package org.olg
    {
    [RemoteClass(alias="VOContact")]

    [Bindable]
    public class VOContact
    {
    public var $contactyear:uint;
    public var $contactmonth:String;
    public var $contactgender:String;
    public var $contactlanguage:String;
    public var $contactparticipation:String;
    public var $contactlastname:String;
    public var $contactfirstname:String;
    public var $contactaddress:String;
    public var $contactcity:String;
    public var $contactstate:String;
    public var $contactzipcode:String;
    public var $contacthomephone:String;
    public var $contactworkphone:String;
    public var $contactmobilephone:String;
    public var $contactemail:String;
    public var $ontactotheremail:String;
    public var $contactparish:String;
    }
    }

    Service:

    require_once(‘VOContact.php’);

    public function putData($contact)
    {
    if ($contact == NULL)
    return NULL;

    //connect to the database.
    $mysql = mysql_connect(DATABASE_SERVER, DATABASE_USERNAME, DATABASE_PASSWORD);
    mysql_select_db(DATABASE_NAME);

    //save changes
    $query = sprintf(“INSERT INTO contactstable (contactyear,
    contactmonth,
    contactgender,
    contactlanguage,
    contactparticipation,
    contactlastName,
    contactfirstName,
    contactaddress,
    contactcity,
    contactstate,
    contactzipCode,
    contacthomePhone,
    contactmobilePhone,
    contactworkPhone,
    contactemail,
    contactotherEmail,
    contactparish) VALUES (
    ‘”.mysql_real_escape_string($contact[contactyear]).”‘,
    ‘”.mysql_real_escape_string($contact[contactmonth]).”‘,
    ‘”.mysql_real_escape_string($contact[contactgender]).”‘,
    ‘”.mysql_real_escape_string($contact[contactlanguage]).”‘,
    ‘”.mysql_real_escape_string($contact[contactparticipation]).”‘,
    ‘”.mysql_real_escape_string($contact[contactlastName]).”‘,
    ‘”.mysql_real_escape_string($contact[contactfirstName]).”‘,
    ‘”.mysql_real_escape_string($contact[contactaddress]).”‘,
    ‘”.mysql_real_escape_string($contact[contactcity]).”‘,
    ‘”.mysql_real_escape_string($contact[contactstate]).”‘,
    ‘”.mysql_real_escape_string($contact[contactzipCode]).”‘,
    ‘”.mysql_real_escape_string($contact[contacthomePhone]).”‘,
    ‘”.mysql_real_escape_string($contact[contactmobilePhone]).”‘,
    ‘”.mysql_real_escape_string($contact[contactworkPhone]).”‘,
    ‘”.mysql_real_escape_string($contact[contactemail]).”‘,
    ‘”.mysql_real_escape_string($contact[contactotherEmail]).”‘,
    ‘”.mysql_real_escape_string($contact[contactparish]).”‘
    “);
    $result = mysql_query($query);
    return NULL;
    }

    MXML:
    private var contact:Object = “”;

    private function groupContact():void
    {
    contact = {contactyear:yearTextInput.text,
    contactmonth:monthComboBox.selectedItem,
    contactgender:genderComboBox.selectedItem,
    contactlanguage:languageComboBox.selectedItem,
    contactparticipation:participationTypeComboBox.selectedItem,
    contactlastName:lastNameTextInput.text,
    contactfirstName:firstNameTextInput.text,
    contactaddress:addressTextArea.text,
    contactcity:cityTextArea.text,
    contactstate:stateComboBox.text,
    contactzipCode:zipCodeTextInput.text,
    contacthomePhone:homePhoneTextInput.text,
    contactmobilePhone:mobilePhoneTextInput.text,
    contactworkPhone:workPhoneTextInput.text,
    contactemail:emailTextInput.text,
    contactotherEmail:otherEmailTextInput.text,
    contactparish:parishTextInput.text};
    }

    [A DIFFERENT FUNCTIONS CALLS THIS FUNCTION]
    groupContact();

    private function putDataListner(event:ResultEvent):void
    {
    Alert.show(“The data was saved!”);
    }

  19. June 12th, 2009 at 20:58 | #19

    MISSED PHP VO:

  20. June 12th, 2009 at 20:59 | #20

    class VOContact
    {
    public $contactyear;
    public $contactmonth;
    public $contactgender;
    public $contactlanguage;
    public $contactparticipation;
    public $contactlastname;
    public $contactfirstname;
    public $contactaddress;
    public $contactcity;
    public $contactstate;
    public $contactzipcode;
    public $contacthomephone;
    public $contactworkphone;
    public $contactmobilephone;
    public $contactemail;
    public $ontactotheremail;
    public $contactparish;
    }

  21. farid
    August 10th, 2009 at 05:37 | #21

    Hi
    Thanks and appreciate.
    Anyone know how I can set object relational mapping with flex and zend amf such as one-many relationship ?

    Looking forward to hearing from you

    BR
    Farid Valipour

  22. Luke Mackenzie
    August 28th, 2009 at 10:16 | #22

    Hi,

    Does Zend_Amf support Actionscript 2 i.e AMF0 and not AMF3?

    Thanks,

    Luke.

  23. Beau Brewer
    September 30th, 2009 at 14:12 | #23

    Wade,

    I’m hoping I will get a chance to meet you @ Max 09′.

    I was thinking about using IExternalizable to map an ArrayCollection to Array when going from Flex->PHP and from an Array back to an ArrayCollection when coming back from PHP->Flex.

    This would give me all the benefits of the ArrayCollection on the client side without unnecessary complications added on the server side.

    First, what are your thoughts about this idea? Do you see any red flags or problems that could be introduced by this? Second, is it even possible?

    Thanks for your insight,
    Beau N. Brewer

  24. Sal
    October 30th, 2009 at 06:24 | #24

    Will ZendAMF ever return to a stand alone product like it was in version 1.7.8 and below? All the other newer versions have a “require_once ‘Zend/Auth.php’;” that returns an error because Auth.php is not in the ZendAMF package. Is this a Zend sale Strategy to force people to install their entire Zend Framework? Please be clear so people can decide to continue using ZendAMF or to change to other products.

  25. leef
    November 9th, 2009 at 17:41 | #25

    Will you be able to respond to the slow serialization issue anytime soon? At the time we’re having to completely abandon ZendAMF on developing projects, and return to AMFPHP on some completed ones. Thanks for everything Wade.

  26. November 9th, 2009 at 17:47 | #26

    @farid We are working on this with Doctrine as it is being integrated into the Zend Framework. Also people have been successful with propel but i can’t find a link right now.

  27. leef
    November 10th, 2009 at 18:56 | #27

    Hello, on second look that “thanks for everything Wade” might sound rude, or sarcastic on the end of the previous sentence, but that was not the intention = [ I really do appreciate all of the hard work you’ve put into ZendAMF, I like the direction it’s taken. I especially like how “services” aren’t required to be in any particular place as they are in AMFPHP. Cheers

  28. kols
    November 20th, 2009 at 11:23 | #28

    Hi Wade.
    Thanks for your Job.
    I Have a question.I Can Run ZendAmf Under Window normal With .
    But,The Same Code Run In Linux.It is Failed.
    I Debug in ZendBrowser,the Cursor Still On Busy State.
    Is it Something Error,May Be?
    OS:Ubuntu9.10

  29. Stf
    December 4th, 2009 at 11:19 | #29

    Hi, all the examples I’ve seen for Zend_Amf/Flex, are extremely simple (for brevity, I guess). What if my service class has dependencies? How can I pass those dependencies to my service class? Is there something in the Zend_Amf module that will help me do this?

  30. Todd
    December 4th, 2009 at 19:41 | #30

    Hi Wade,

    Any update on the integration of Zend_AMF and AMFEXT?

    Thanks

  31. December 14th, 2009 at 16:34 | #31

    Wade- I totally appreciate all that you have done in the way of education with regards to Zend Framework and AMF. I’ve posted my full delema here.

    http://forums.zend.com/viewtopic.php?f=59&t=4629

    I’m sorry to possibly take users away to the Zend Site, as I know you are looking for domains with a lot of traffic. However, I laid out my issue well on the Zend Forums. The issue I have is with the simple “Hello Wade” sample with Zend Studio 7x and the Flash Builder 4 (beta 2 plugin). This uses Flex SDK 3.4 or 4.0. Your thoughts on this would be a tremendous help. – Best, Doogle

  32. dl
    December 23rd, 2009 at 08:53 | #32

    Hi,
    when I create sample code with gumbo from a database, value Objects and data typing is managed automaticly.

    I have tried to create the Services now from my own PHP Classes.
    Works fine except Datatyping.
    Lets say a PHP function returns an array, how do I map those to a ValueObject, how do I data type it.( The sample code also returns an array.)

    A tutorial HOW this all exactly works together would make customisation a lot easier.

    Help Please :)
    Cheers dl

  33. Brandon
    January 15th, 2010 at 17:29 | #33

    I have a Flex frontend connecting via RemoteObject to Zend Amf. This is my only means to transport data between client layer (Flex) and the application and persistence layers (LAMP with Zend Framework).
    Some ways I can address security are as follows:

    1. I can address TLS by using mx.messaging.channels.SecureAMFChannel in my services-config.xml file and ensuring Flash player is loaded into a HTTPS wrapper and is in fact using HTTPS since the AMF protocol is layered on top of HTTP
    2. RemoteObject has a setCredentials method with which I can pass AMF authentication headers to protect user related data. Assuming TLS was actually secure I can expose methods on the endpoint after authenticating the User.
    3. I can protect against cross-site scripting and other FLASH vulnerabilities with a properly set up crossdomain.xml

    The question I have is how to I protect my endpoint against another AMF consumer? For instance, if there were another AMF consumer (not Flash so not bound by crossdomain.xml and Flash sandbox security) other than my Flex client that knew my endpoint, what would stop it from using methods that the endpoint exposes?

    As far as I know I essentially need a way to authenticate my Flex application against my Zend Amf endpoint. After AMF consumer authentication, I have some of the security mechanisms I mentioned above to protect certain pieces of data (like User authentication). I can not embed some sort of authentication mechanism into my Flex swf because the swf is vulnerable to decompilation (the swf can not be trusted). While sensitive data is protected via User authentication the unprotected data is hardly public but as far as I can tell is totally open for public consumption.

  34. bruno
    January 20th, 2010 at 08:12 | #34

    hello,
    I have an error with zend AMf, I’m working with zend 1.9.7 and flex 3.2.0
    flex return me :
    RPC Fault faultString=”Send failed” faultCode=”Client.Error.MessageSend” faultDetail=”Channel.Connect.Failed error NetConnection.Call.BadVersion

    but my endpoint is good and a good header is return from zendAMF
    HTTP/1.1 200 OK
    Date: Wed, 20 Jan 2010 13:05:29 GMT
    Server: Apache/2.2.11 (Win32) PHP/5.3.0
    X-Powered-By: PHP/5.3.0
    Cache-Control: cache, must-revalidate
    Pragma: public
    Content-Length: 570
    Connection: close
    Content-Type: application/x-amf

    and charles (proxy debugging) return me :
    failed to parse data (com.xk72.amf-AMFException : unsupported AMF3 packet type 32 a 1

    charles give me raw format and I can see body return with bad encoding, a rectangle in the place of the character.
    I’m lost , thanks and I hope you have the time to respond to me
    thank a lot

  35. February 9th, 2010 at 01:11 | #35

    Hi,

    I have spent hours searching for an answer to this one and was hoping you might be able to assist!

    I am trying to pass a parameter via a NetConnection object in AS3 (Flash CS4), viz: ncDB.connect(serverName, param) and then have the parameter picked up by my class on the Zend Amf server side, ie,

    $server = new Zend_Amf_Server();
    $server->setClass(“className”,”",param);

    class className {
    public function __construct($param) {
    mysql_connect(“localhost”,”$param”,”passwd”);
    mysql_select_db(“$param”);
    }

    I can successfully connect to the server when all references to the param are removed and are replaced by a hard coded name.

    Any suggestions gratefully received!

    Thanks in anticipation.

  36. March 14th, 2010 at 17:27 | #36

    Hi, i’m also having troubles using Zend_Amf with Flex. I set everything up according to the tutorial on
    http://framework.zend.com/wiki/display/ZFPROP/Zend_Amf+-+Wade+Arnold but I always get a an error (in Flex) with the following message:
    Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: ‘http://localhost/flexshop/’
    (The directory flexshop is where the index.php with the amf server is located).
    In my index.php I do the following:
    [CODE]
    require_once ‘Zend/Amf/Server.php’;
    require_once ‘Flexshop/HelloWorld.php’;

    $server = new Zend_Amf_Server();
    $server->setClass(‘HelloWorld’);

    echo $server->handle(); //OR: $server->handle();
    [/CODE]

    If I simply use $server->handle(); without the “echo” in the last line, the Flex application does not get an answer from the service and keeps waiting forever. If I use “echo” it gets an answer which results in the error message already stated. Pointing to the service with a browser opens a file download dialogue which offers me a file of the type “application/x-amf” – what seems basically correct. However, this file contains just a string: Zend Amf Endpoint.

    1. I’m not sure what the file returned SHOULD contain. Maybe at least this part of the app is correct and the error is on the Flex-Side.
    2. Has anybody any idea what goes wrong here? In fact, I tried different tutorials and different settings but had no success in getting Zend_AMF to comuciate correctly with Flex. Maybe I do have a more general configuration somewhere (something in the apache or php config?) that I do not know is relevant to Zend_Amf. I have no clue where to look, any hint would greately be appreciated.

    Anyway, I guess if I could get Zand_Amf to work, it would be a great tool. (I’ve read a lot about it while searching for a solution…)

    Greets,

    Michael H.

  37. March 16th, 2010 at 04:46 | #37

    Okay, I finally solved my BadVersion error. The lesson is: Watch out for spaces that should not be there (in AMF’s opinion) and that COULD appear at the beginning or end of your PHP files. In my case, the HelloWorld class had a few spaces at the end after PHP’s closing tag. After I removed them, everything worked as it should.
    By the way, Zend_Amf seems to be supposed to return a file download dialogue, offering a file which contains the line “Zend Amf Endpoint” But there should be no spaces at the beginning or end of the line. (Before I fixed my mistakes, there were some spaces at the beginning of the line in this file).
    There is also a nice tool for debugging Zend_Amf Applications, called “Zamf Browser”:
    http://www.zamfbrowser.org/

    Ok, now I’m going to enjoy my working Zend / PHP connection… Thanks for this tool!

    Michael

  38. Boris
    April 1st, 2010 at 02:47 | #38

    @bruno
    Hi Bruno,

    I have very similar problem with zend_amf. Have you found any solution you could advice me?

    Thank you
    Boris

  39. philou
    April 5th, 2010 at 13:59 | #39

    Re: unsupported AMF3 packet type

    Hi,

    I had the same problem and the problem turned out to be a stray character in front of the starting <?php tag in one of my files which were called as part of the AMF service.
    p.

  40. May 12th, 2010 at 17:12 | #40

    @philou

    Thanks! Had exactly the same issue and couldn’t figure it out until I read your comment. I used UltraEdit to view my files in hexmode and there it was. Some strange looking Cyrillic signs. Once they were gone it all worked like a charm.

  41. Vince
    May 25th, 2010 at 22:22 | #41

    Hi Wade.
    Thanks for your Job.
    I Have a question.I Can Run ZendAmf Under Window normal With .
    But,The Same Code Run In Linux.It is Failed.
    I Debug in ZendBrowser,the Cursor Still On Busy State.
    Is it Something Error,May Be?
    OS:Ubuntu9.10

    I have the same problem with kols And Cant find a good fixed by googling

  42. Akindele
    June 22nd, 2010 at 20:15 | #42

    Hi Wade,

    Can ZendAMF be used with Gaia? Can ZendAMF be used to connect Flash to Drupal?

    I have been trying to make these connections in a meaningful way; however I keep hitting walls.

    Please advise
    Akindele

  43. shin
    September 12th, 2010 at 00:50 | #43

    help zendamf or amfphp

    both have same problems
    my preamble response writeByte 0×09 0×00 0×03
    why not 0×00 0×03 (2 digit) ????

    i’m lost

  44. October 20th, 2010 at 04:58 | #44

    Hi,
    I’m developing a flash cms using Flex + PHP (Zend Framework – Zend_AMF)…
    I switch between my zend_amf gateway and amfphp gateway and the result was a performance improvement about 2x faster, without amfext…

    So, i would like to know if theres a coming release of zend_amf more eficient and with amfext suport

  45. Daniel Mariz
    October 26th, 2010 at 14:00 | #45

    bruno and philou if you used zend mvc try in flash

    [code]connection.objectEncoding = ObjectEncoding.AMF3;[/code]

    and in php

    [code]Zend_Layout::getMvcInstance()->disableLayout();[/code]

    and use a blank view

  46. May 19th, 2011 at 08:36 | #46

    Hi,
    I’ve a problem regarding credentials authentication with the latest svn sources.
    If I add the following line to my pure as3 project, php drops a notice level error message:

    AS3 =>
    gatewayNetConnection.addHeader(“Credentials”,false,{userid:”username”,password:”passwd”});

    PHP Log =>
    [Tue May 17 23:33:35 2011] [error] [client 127.0.0.1] PHP Notice: Undefined offset: 0 in C:\\Work\\repositories\\zend\\library\\Zend\\Amf\\Request.php on line 186

    I have no success to get the \Zend\Amf\Adobe\Auth class working. Anonymous user access works but i cannot authenticate other users, both from client or server side.

    Also i’m wondering that are there any open source library that simulates the Flex like Messaging framework, so i could send CommandMessages to the server with a pure as3 client?

  1. No trackbacks yet.