[flexcoders] Re: PHP and Flex?
If this is going to be your first step then try this first of all: http://www.adobe.com/devnet/flex/articles/php_getstarted.html http://www.adobe.com/devnet/flex/ --- In flexcoders@yahoogroups.com, bitfacepatrick [EMAIL PROTECTED] wrote: Hello I was looking to work with Flex and PHP. I heard that AMF PHP was a great place to start. I tried their site and a number of links found on google. http://amfphp.org/ Is this the best way to work with PHP and Flex? Or is there industry standard process? Does anyone know if this is a valid project?
[flexcoders] Re: php and flex
Hi! I see you are doing quite a lot with PHP and Flex 2. I was wondering if you can help me out on some things, not just you anyone can help :) I'm using below code to access remoting on PHP gateway.call(Projekt.izpisProjekt, new Responder(onResult, onFault)); When an error occurs' I just see [object Object] and nothing else. What should I do to make these errors a bit more friendlier? I know if you want to pass variables from Flex2PHP you have to pass a third parameter to cal() method. But what to do, if I have to pass several parameters back to PHP? Thank you in advance. --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: You'll need XMLSocket. PHP can do it. http://www.enobrev.com/chat_tutorial.php - Original Message - From: arnold_charming [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, July 30, 2006 5:00 AM Subject: [flexcoders] Re: php and flex --- In flexcoders@yahoogroups.com, Stefan Schmalhaus stefan@ wrote: --- In flexcoders@yahoogroups.com, arnold_charming arnold_charming@ wrote: Can I also push data? Because till now I was justing using pull mechanism. AMFPHP works in both directions. Please take a look at the AMFPHP documentation for details: http://www.amfphp.org/docs/ Stefan I've looked and looked but can't seem to find anything about data push. I'm going to use data push in application because time to time my application will send some messages to all current users of application. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: php and flex
For python, you could look into the SimpleSocketServer API. Like the name says...it's 'simple'. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of matt wicks Sent: Sunday, July 30, 2006 3:35 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: php and flex What about python - anyone know a good python equivalent? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of arnold_charming Sent: 30 July 2006 10:06 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: php and flex --- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, arnold_charming arnold_charming@ wrote: Can I also push data? Because till now I was justing using pull mechanism. AMFPHP works in both directions. Please take a look at the AMFPHP documentation for details: http://www.amfphp.org/docs/ Stefan What should be done on the Flex side to enable data push? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links --- [This E-mail scanned for viruses for your protection] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: php and flex
To push data you need a socket server. I'm not sure if there is a socket server available for php. Cheers, Ralf. [EMAIL PROTECTED] wrote: Can I also push data? Because till now I was justing using pull mechanism. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: php and flex
--- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, arnold_charming arnold_charming@ wrote: Can I also push data? Because till now I was justing using pull mechanism. AMFPHP works in both directions. Please take a look at the AMFPHP documentation for details: http://www.amfphp.org/docs/ Stefan What should be done on the Flex side to enable data push? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: php and flex
I dont use AMFPHP to comunicate with Flex, AMFPHP its a good solution but I prefer to make all server scripts by myself, also if you send a lot of registers to a datagrid in XML format the amount of bytes is too high, if you send registers in your propietry way you send less data but you have to transform in the client. Here you have a sample filling a ComboBox: PHP send this (each line is a register): field1|field2|field3| field1|field2|field3| field1|field2|field3| At Flex: hs is a HTTPService instance private function getResult(event:Event):void{ switch(this.hs.resultFormat){ case 'object': // In this case the PHP sent one XML this.dataProvider=hs.lastResult.item; break; case 'text': // In this case PHP sent registers whose fields are separated by '|' character if(this.hs.lastResult!=''){ var a:Array=this.hs.lastResult.split('|'); var b:Array=new Array(); for(var x:Number=0;xa.length;x+=2){ b[b.length]={label:a[x],value:a[x+1]}; } this.dataProvider=b; } break; } } --- In flexcoders@yahoogroups.com, arnold_charming [EMAIL PROTECTED] wrote: Hi! I'm using php as my server pages while flex is used for presentation logic. What bugs me the most is the exchange of data between PHP and Flex. I always have to generate a XML file and then passed it to Flex. Can this be done any simplier and faster? How about passing mysql data results from PHP directly to Flex without the hasle of transforming it to XML? Is AMFPHP the right tool for this job? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: php and flex
--- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, arnold_charming arnold_charming@ wrote: Can I also push data? Because till now I was justing using pull mechanism. AMFPHP works in both directions. Please take a look at the AMFPHP documentation for details: http://www.amfphp.org/docs/ Stefan I've looked and looked but can't seem to find anything about data push. I'm going to use data push in application because time to time my application will send some messages to all current users of application. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: php and flex
You'll need XMLSocket. PHP can do it. http://www.enobrev.com/chat_tutorial.php - Original Message - From: arnold_charming [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, July 30, 2006 5:00 AM Subject: [flexcoders] Re: php and flex --- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, arnold_charming arnold_charming@ wrote: Can I also push data? Because till now I was justing using pull mechanism. AMFPHP works in both directions. Please take a look at the AMFPHP documentation for details: http://www.amfphp.org/docs/ Stefan I've looked and looked but can't seem to find anything about data push. I'm going to use data push in application because time to time my application will send some messages to all current users of application. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: php and flex
Its worth noting that very often what is perceived as server-push is actually implemented through some form of client-pull. For instance, in many enterprise message bus implementations, the client makes a single blocking call which hangs, but does so on an independant thread. When the event occurs, the servant returns control and marshalls results to the waiting client. From the outside this appears the server pushed data to the client. In reality the client pulled it. The reason I bring this up is that Flex is a great client to implement just such a server-push approach with. Since all mx:HttpService/ calls occur on their own client thread, you can easily implement server-push style functionality with basically any kind of servant implementation. We used to call this approach a Blocking Registration. -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, arnold_charming [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Stefan Schmalhaus stefan@ wrote: --- In flexcoders@yahoogroups.com, arnold_charming arnold_charming@ wrote: Can I also push data? Because till now I was justing using pull mechanism. AMFPHP works in both directions. Please take a look at the AMFPHP documentation for details: http://www.amfphp.org/docs/ Stefan I've looked and looked but can't seem to find anything about data push. I'm going to use data push in application because time to time my application will send some messages to all current users of application. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: php and flex
What about python - anyone know a good python equivalent? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of arnold_charming Sent: 30 July 2006 10:06 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: php and flex --- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, arnold_charming arnold_charming@ wrote: Can I also push data? Because till now I was justing using pull mechanism. AMFPHP works in both directions. Please take a look at the AMFPHP documentation for details: http://www.amfphp.org/docs/ Stefan What should be done on the Flex side to enable data push? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links --- [This E-mail scanned for viruses for your protection] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: php and flex
--- In flexcoders@yahoogroups.com, arnold_charming [EMAIL PROTECTED] wrote: Is AMFPHP the right tool for this job? Yes, it is: http://www.adobe.com/devnet/flex/articles/flex2_amfphp.html http://renaun.com/blog/2006/07/25/70/ http://www.narancs.net/flex/ClassMappingExample/ClassMappingExample.html -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: php and flex
--- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, arnold_charming arnold_charming@ wrote: Is AMFPHP the right tool for this job? Yes, it is: http://www.adobe.com/devnet/flex/articles/flex2_amfphp.html http://renaun.com/blog/2006/07/25/70/ http://www.narancs.net/flex/ClassMappingExample/ClassMappingExample.html Can I also push data? Because till now I was justing using pull mechanism. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: php and flex
--- In flexcoders@yahoogroups.com, arnold_charming [EMAIL PROTECTED] wrote: Can I also push data? Because till now I was justing using pull mechanism. AMFPHP works in both directions. Please take a look at the AMFPHP documentation for details: http://www.amfphp.org/docs/ Stefan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/