Macromedia Flash Server - PHP and Flash Comm

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > December 2005 > PHP and Flash Comm





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author PHP and Flash Comm
Todd Coulson

2005-12-23, 5:45 pm

In a recent project I ran up against many roadblocks, bugs and problems
with mixing php data from a mysql database into a shared object to be
displayed on everyone's machine. Is there a protocol that best fits for
updating data from a database through the use of a shared object. Is
there a "best practices" kind of doc out there for mixing database data
and FCS or FMS, like Peldi and Brian Lesser created in their PFCS book
"Best Practices for Flash Comm Server"? I have read online that the
best (and really only way) to mix php and FCS on the Server side of
scripting is to use AMFPHP and integrate remoting:

=20

http://www.flash-db.com/Tutorials/l...in.php?page=3D2

=20

is an example of the kind of code needed. But I was wondering if there
is a client side solution - or if client side would not even be
encouraged? Anyone have other tutorials on the topic (doesn't have to
be PHP, but preferred, I know there is Peldi's devnet on FlashCom and
CFC's
http://www.macromedia.com/devnet/fl...roving_ria.html),
but just need more references on this topic?

=20

Thanks for any pointers.

=20

Todd Coulson

Haley Productions

604 E. Baltimore Pk.

Media, PA 19063

610-892-7970

http://www.haleypro.com

=20


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Beto A

2005-12-23, 5:45 pm

you should be able to do calls directly from your asc scripts through ser=
ialization(amfphp), to your php functions and obtain results if need be, =
personally I wouldn't do it any other way . If your using php any other =
way is very inefficient.=20
=20
if you are using FCS and have sensitive data like Username pass you sho=
uld do remoting directly from client(FMS2 now supports SSL but it is slow=
er). If security is not an issue then you can use netservices.asc on the =
server and create the connection to the gateway.
you can find examples in the archives here is one I cam accross:
http://chattyfig.figleaf.com/mailma...-February/0226=
96.html
=20
it can be .Net php, CFM they all work the under the same principles you=
r results may vary with you are returning different types of objects but =
that just depends on the language you are using.
=20
hope that helps
=20
Beto

Todd Coulson <todd-hVxbGT8T4u9Wk0Htik3J/w@public.gmane.org> wrote:
In a recent project I ran up against many roadblocks, bugs and problems
with mixing php data from a mysql database into a shared object to be
displayed on everyone's machine. Is there a protocol that best fits for
updating data from a database through the use of a shared object. Is
there a "best practices" kind of doc out there for mixing database data
and FCS or FMS, like Peldi and Brian Lesser created in their PFCS book
"Best Practices for Flash Comm Server"? I have read online that the
best (and really only way) to mix php and FCS on the Server side of
scripting is to use AMFPHP and integrate remoting:



http://www.flash-db.com/Tutorials/l...in.php?page=3D2



is an example of the kind of code needed. But I was wondering if there
is a client side solution - or if client side would not even be
encouraged? Anyone have other tutorials on the topic (doesn't have to
be PHP, but preferred, I know there is Peldi's devnet on FlashCom and
CFC's
http://www.macromedia.com/devnet/fl...roving_ria.html),
but just need more references on this topic?



Thanks for any pointers.



Todd Coulson

Haley Productions

604 E. Baltimore Pk.

Media, PA 19063

610-892-7970

http://www.haleypro.com




=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=20


=09
---------------------------------
Yahoo! for Good - Make a difference this year.=20

=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Abdullah Khan

2005-12-23, 5:45 pm

Hi Tod,

We are using PHP/Flash com solution in our extranet application. In our scenario, multiple people are given a choice to work and manage same information from different locations. Hence, flashcom /PHP PostgreSQL solution proved to be an ideal.

Flash com pulls data from mysql using AMFPHP based remoting and stores them into remote shared objects. The remote shared objects mirror the same data into UI components. Different users view and manage the same set of information and whenever a change is
made to any record set; it's viewed by everyone else.

There could be many examples where it may be "effecient" to make flash com make a remoting call and pulls data for all teh clients who were to see same information. hope this helps

regards

-abdullah


On Friday, December 23, 2005, at 10:45AM, Todd Coulson <todd-hVxbGT8T4u9Wk0Htik3J/w@public.gmane.org> wrote:

>In a recent project I ran up against many roadblocks, bugs and problems
>with mixing php data from a mysql database into a shared object to be
>displayed on everyone's machine. Is there a protocol that best fits for
>updating data from a database through the use of a shared object. Is
>there a "best practices" kind of doc out there for mixing database data
>and FCS or FMS, like Peldi and Brian Lesser created in their PFCS book
>"Best Practices for Flash Comm Server"? I have read online that the
>best (and really only way) to mix php and FCS on the Server side of
>scripting is to use AMFPHP and integrate remoting:
>
>
>
>http://www.flash-db.com/Tutorials/l...ogin.php?page=2
>
>
>
>is an example of the kind of code needed. But I was wondering if there
>is a client side solution - or if client side would not even be
>encouraged? Anyone have other tutorials on the topic (doesn't have to
>be PHP, but preferred, I know there is Peldi's devnet on FlashCom and
>CFC's
>http://www.macromedia.com/devnet/fl...roving_ria.html),
>but just need more references on this topic?
>
>
>
>Thanks for any pointers.
>
>
>
>Todd Coulson
>
>Haley Productions
>
>604 E. Baltimore Pk.
>
>Media, PA 19063
>
>610-892-7970
>
>http://www.haleypro.com
>
>
>
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Abdullah Khan

2005-12-23, 5:45 pm

excuse the error in teh second para - PostgreSQL it is not mysql :D
On Friday, December 23, 2005, at 12:22PM, Abdullah Khan <akhan1-ee4meeAH724@public.gmane.org> wrote:

> Hi Tod,
>
>We are using PHP/Flash com solution in our extranet application. In our scenario, multiple people are given a choice to work and manage same information from different locations. Hence, flashcom /PHP PostgreSQL solution proved to be an ideal.
>
>Flash com pulls data from mysql using AMFPHP based remoting and stores them into remote shared objects. The remote shared objects mirror the same data into UI components. Different users view and manage the same set of information and whenever a change i

s made to any record set; it's viewed by everyone else.
>
>There could be many examples where it may be "effecient" to make flash com make a remoting call and pulls data for all teh clients who were to see same information. hope this helps
>
>regards
>
>-abdullah
>
>
>On Friday, December 23, 2005, at 10:45AM, Todd Coulson <todd-hVxbGT8T4u9Wk0Htik3J/w@public.gmane.org> wrote:
>
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brian Lesser

2005-12-23, 5:45 pm

Hi Todd,
I'm not aware of anything published that goes much beyond what Peldi
wrote in the article you mentioned. There is certainly lots of
opportunity here for further work in synchronizing the shared object to
a database table or view.

Another area would be to consider grabbing client side updates of a SO
and synchronizing them against the database - something I wouldn't
recommend unless you have lots of R&D time.

At any rate the simplest sequence seems to be:

1. let the client or server update the database directly
2. poll the database for changes ( or use an XML socket to push updates ).
3. update the SO - often the primary key value is the property name of
each SO slot.

Yours truly,
-Brian

Todd Coulson wrote:

>In a recent project I ran up against many roadblocks, bugs and problems
>with mixing php data from a mysql database into a shared object to be
>displayed on everyone's machine. Is there a protocol that best fits for
>updating data from a database through the use of a shared object. Is
>there a "best practices" kind of doc out there for mixing database data
>and FCS or FMS, like Peldi and Brian Lesser created in their PFCS book
>"Best Practices for Flash Comm Server"? I have read online that the
>best (and really only way) to mix php and FCS on the Server side of
>scripting is to use AMFPHP and integrate remoting:
>
>
>
>http://www.flash-db.com/Tutorials/l...ogin.php?page=2
>
>
>
>is an example of the kind of code needed. But I was wondering if there
>is a client side solution - or if client side would not even be
>encouraged? Anyone have other tutorials on the topic (doesn't have to
>be PHP, but preferred, I know there is Peldi's devnet on FlashCom and
>CFC's
>http://www.macromedia.com/devnet/fl...roving_ria.html),
>but just need more references on this topic?
>
>
>
>Thanks for any pointers.
>
>
>
>Todd Coulson
>
>Haley Productions
>
>604 E. Baltimore Pk.
>
>Media, PA 19063
>
>610-892-7970
>
>http://www.haleypro.com
>
>
>
>
>=---------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=---------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>



--
________________________________________
______________________________
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220
Office: AB48D E-mail: blesser-6s6ziW1YCwCw5LPnMra/2Q@public.gmane.org
(Enter through LB66) Web: http://www.ryerson.ca/~blesser
________________________________________
______________________________


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com