thanks a lot for your detailed explanations , they are really useful.

by the way; i built EasyReq class for local applications that do not need 
security; but i'm aware that , if i want to spread it; i'll have to take care
for the security issue.

For eren bali's suggest (sending sql directly) :
i my class; my EasyReq class has functions like AddTable; AddWanted ,remove...
etc. so i want to give it a more useful view... and also; readability...

again ; thanks a lot for all answers....

----- Original Message ----
From: Lachlan Cotter <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, December 18, 2006 12:36:54 PM
Subject: Re: [flexcoders] why AMFPHP , i still can not get the point :(









  


    
            
Hi Yioit,


I believe AMFPHP was originally created to work with remoting in Flash (not 
Flex). The XML handling abilities of Flash are not in the same league as Flex, 
so XML was a huge pain. AMFPHP definitely makes a big difference for Flash 
Development.


Since Flex is so much better with XML, the benefits may not be so obvious 
depending on the specifics of your project.


I agree with you that there can be a lot of overhead in creating client-server 
interfaces and working out the best way to serialise data for transfer etc. As 
for your comment about having to write classes in both PHP and ActionScript: I 
don't see that there is any escaping this. Unless your application is trivially 
simple, then you will surely want to create domain model objects on the server 
to encapsulate logic and the database access. Same goes for the Flex side.


As for the most development time efficient method for architecting the service 
interface, I'm still trying to figure that out. There are several options for 
both XML and AMF in PHP and also in other languages. WebORB for Ruby on Rails 
is another alternative that can potentially save time once you get over the 
Rails learning curve and learn how to install everything properly (which is a 
significant investment).


You are correct that AMF serialised data is quicker to transfer and marshal 
than the equivalent XML, but this probably only becomes an issue when your 
dealing with quite large result sets.


With regard to your generalised database query over HTTP class: I'm all for 
this type of time saving solution, but I think you need to address a couple of 
issues to make it more widely useful. Namely, the security concern of having a 
service that allows clients to effectively design their own SQL queries to be 
executed on your server, and secondly the fact that this approach seems to 
bypass the server side domain logic.


Cheers,
Lach



On 18/12/2006, at 6:44 PM, Yiðit Boyar wrote:

hi, 
i've been developing web RIA's using PHP&mysql support for data for about 3-4 
months. writing diffrent php files for every fetch type was sucking so i've 
starting developing a new class communicating with my own php file to fetch 
data. my class is so pre now but you may find some info about it 
athttp://yboyar.blogspot.com/2006/12/easyreq-http-service-class-which-makes.html
 .
anyway; my question is sth diffrent. also i read a lot about AMFPHP , i still 
could not understand where it helps me reduce time to build applications since 
i write every class in php & actionscript.
i've downloaded AMFPHP but although i did the database setup , it still gives 
error. 
So, please can someone clearly explain me how AMFPHP helps time reduction WHILE 
developing the application ? (or does it ?)
as much as i understood, it help reducing transferred data size in the running 
time. Am I right in this point ?

thanks a lot, by the way; what do you think about the tool i develop; does it 
seem helpful or useless ?


    
  

    
    




<!--

#ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;
}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;
}
#ygrp-vitnav{
padding-top:10px;
font-family:Verdana;
font-size:77%;
margin:0;
}
#ygrp-vitnav a{
padding:0 1px;
}
#ygrp-actbar{
clear:both;
margin:25px 0;
white-space:nowrap;
color:#666;
text-align:right;
}
#ygrp-actbar .left{
float:left;
white-space:nowrap;
}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;
font-size:77%;
padding:15px 0;
}
#ygrp-ft{
font-family:verdana;
font-size:77%;
border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;
}

#ygrp-vital{
background-color:#e0ecee;
margin-bottom:20px;
padding:2px 0 8px 8px;
}
#ygrp-vital #vithd{
font-size:77%;
font-family:Verdana;
font-weight:bold;
color:#333;
text-transform:uppercase;
}
#ygrp-vital ul{
padding:0;
margin:2px 0;
}
#ygrp-vital ul li{
list-style-type:none;
clear:both;
border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;
color:#ff7900;
float:right;
width:2em;
text-align:right;
padding-right:.5em;
}
#ygrp-vital ul li .cat{
font-weight:bold;
}
#ygrp-vital a {
text-decoration:none;
}

#ygrp-vital a:hover{
text-decoration:underline;
}

#ygrp-sponsor #hd{
color:#999;
font-size:77%;
}
#ygrp-sponsor #ov{
padding:6px 13px;
background-color:#e0ecee;
margin-bottom:20px;
}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;
margin:0;
}
#ygrp-sponsor #ov li{
list-style-type:square;
padding:6px 0;
font-size:77%;
}
#ygrp-sponsor #ov li a{
text-decoration:none;
font-size:130%;
}
#ygrp-sponsor #nc {
background-color:#eee;
margin-bottom:20px;
padding:0 8px;
}
#ygrp-sponsor .ad{
padding:8px 0;
}
#ygrp-sponsor .ad #hd1{
font-family:Arial;
font-weight:bold;
color:#628c2a;
font-size:100%;
line-height:122%;
}
#ygrp-sponsor .ad a{
text-decoration:none;
}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;
}
#ygrp-sponsor .ad p{
margin:0;
}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;
}
#ygrp-text tt{
font-size:120%;
}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
-->







__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to