Macromedia Flash Server - 0 length recordsets from AMFPHP

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > June 2005 > 0 length recordsets from AMFPHP





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 0 length recordsets from AMFPHP
Brett Forsyth

2005-06-23, 2:45 am

I am running flash comm 1.5 on one machine and AMFPHP on another
machine on the same network. I can get flash com to call methods of
the remoting server no problem. I can also get strings back from
remoting methods. What i am having a problem with is getting remoting
and/or flash comm to send/recieve a record set. It always comes back
as a recordset of length 0. I have run the remoting call on the
client side I get the proper record set. Any thoughts?

=-----------------------------------------------------------
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-06-23, 5:49 pm

you will have to convert them into array of objects within the php environment, and then send that array over to flashcom. works like a charm. return alone something like

return mysql_query($query) won't work when remoting btw flashcom and AMFPHP

-abdullah
On Thursday, June 23, 2005, at 00:17AM, Brett Forsyth <brettf-J+Qxk28IV6uw5LPnMra/2Q@public.gmane.org> wrote:

>I am running flash comm 1.5 on one machine and AMFPHP on another
>machine on the same network. I can get flash com to call methods of
>the remoting server no problem. I can also get strings back from
>remoting methods. What i am having a problem with is getting remoting
>and/or flash comm to send/recieve a record set. It always comes back
>as a recordset of length 0. I have run the remoting call on the
>client side I get the proper record set. Any thoughts?
>
>=-----------------------------------------------------------
>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

Jake Hilton

2005-06-23, 5:49 pm

Does phpObject work better than amfphp?

Jake=20

you will have to convert them into array of objects within the php =
environment, and then send that array over to flashcom. works like a =
charm. return alone something like

return mysql_query($query) won't work when remoting btw flashcom and =
AMFPHP

-abdullah
On Thursday, June 23, 2005, at 00:17AM, Brett Forsyth <brettf-J+Qxk28IV6uw5LPnMra/2Q@public.gmane.org> =
wrote:
[vbcol=seagreen]
>I am running flash comm 1.5 on one machine and AMFPHP on another =20
>machine on the same network. I can get flash com to call methods of =20
>the remoting server no problem. I can also get strings back from =20
>remoting methods. What i am having a problem with is getting remoting =20
>and/or flash comm to send/recieve a record set. It always comes back =20
>as a recordset of length 0. I have run the remoting call on the =20
>client side I get the proper record set. Any thoughts?=20
>
>=3D-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com=20
>=3D-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailma...fo/flashcomm=20
>
>


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

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-06-23, 5:49 pm

I am not familiar with php object at all. although, it be worth checking it out. in php i do something simple like this

$res = pg_query($this->dbCon, $query);

$resObj = array();

while ($datos = pg_fetch_array($res, NULL, PGSQL_ASSOC)) {

$data = array();
$data['user_id'] = $datos['user_id'];
$data['user_name'] = $datos['user_name'];
array_push($resObj, $data);

}

return $resObj;


-abdullah



On Thursday, June 23, 2005, at 09:56AM, Jake Hilton <jhilton-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org> wrote:

>Does phpObject work better than amfphp?
>
>Jake
>
>you will have to convert them into array of objects within the php environment, and then send that array over to flashcom. works like a charm. return alone something like
>
>return mysql_query($query) won't work when remoting btw flashcom and AMFPHP
>
>-abdullah
>On Thursday, June 23, 2005, at 00:17AM, Brett Forsyth <brettf-J+Qxk28IV6uw5LPnMra/2Q@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
>
>


=-----------------------------------------------------------
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

Fly Unknown

2005-06-23, 5:49 pm

Flash's sandbox ?
allowdomain that stuff perhaps ?
tryed netdebugger or go direct to your .php
service and test it?

another thing.. if you are acessing mysql from somewhere that is not "local=
host"
you must include the allowed ip's in the mysql config file

i think wildcard is allowed (at least in cpanel)
200.202.*
192.* (in your case that it is in the same network, maybe this work)

=-----------------------------------------------------------
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