[Arp] PHPservice

Christophe Herreman christophe_herreman at hotmail.com
Wed May 11 12:25:24 PDT 2005


Hi quinrou,

Muzak is right. HTTPServices can never be as fast as Remote Services for the simple reason that they contain more overhead. Their data is sent as text while remote service data is sent in binary form (AMF). Have a look at AMFPHP since you are using PHP. It's fairly simple to setup and use. Also consider the time advantage you have when using remoting since you don't have to parse most of the data yourself.

About your PHPService class: I think it's actually a good idea to have another type of service available (it will have its use some day, in fact I think Keith Peters uses such an implementation). However, I wouldn't call it PHPService, but LoadVarsService for instance. Since it uses LoadVars it is generic in use and not bound to php only.

regards,
Christophe

----- Original Message ----- 
  From: quinrou . 
  To: General List for Ariaware RIA Platform users and developers 
  Sent: Wednesday, May 11, 2005 7:20 PM
  Subject: Re: [Arp] PHPservice


  well no one told me this i just experienced it myself. 
  I did a project using flash remoting and to be honest it wasn't fast as using loadvars. However i might be wrong...

  I attached the zip file because it was tiny (500K).





  On 5/11/05, Muzak <p.ginneberge at pandora.be> wrote:
    Not sure where you heard about Flash Remoting being slow.
    Whoever told you that is wrong.
    It's by far the fastest and easiest way to send/receive data from/to Flash..

    Also, sending files/attachments to a mailing list is not a good thing. 
    Upload them to a server and send the url to the list.

    regards,
    Muzak

    ----- Original Message -----
    From: "quinrou ." <quinrou at gmail.com>
    To: "General List for Ariaware RIA Platform users and developers" < Arp at ariaware.com>
    Sent: Wednesday, May 11, 2005 3:30 PM
    Subject: [Arp] PHPservice

    Hi all

    A little while ago I asked if it was possible to loose the serviceLocator 
    class in order to use my own serverConn class as i am a bit reluctant of
    using Flash Remoting for the simple reason that it is slow. I was advised to
    not do so and to create a new service class based on the XMLservice class. 

    I attach a zip file that contains a project using a PHPservice . The
    PHPservice class is based on the XMLservice class but instead of using the
    flash xml class it uses the Flash LoadVars class. Actually you could even 
    use this class with ASP too as it uses LoadVars... Might need to be renamed
    to LoadVarsService...?

    This project is based on the XMLservice example done by Christop Herreman.

    I provided a read me file which will guide through how to use set the 
    project. You will php and mysql running on your machine.

    I am opened to suggestions to improve this PHPservice class.

    I also have another question relating the implementation of a model class. I
    read previous post realting to the subjects but they didn't say how to 
    implement it. Where would be the best place to have it and as well as
    implementing?

    thanks

    seb

    _______________________________________________
    Arp mailing list
    Arp at ariaware.com
    http://ariaware.com/mailman/listinfo/arp_ariaware.com





------------------------------------------------------------------------------


  _______________________________________________
  Arp mailing list
  Arp at ariaware.com
  http://ariaware.com/mailman/listinfo/arp_ariaware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/arp_ariaware.com/attachments/20050511/9db81b5a/attachment.htm


More information about the Arp mailing list