[swx] Error 256: Unhandled data type (resource) in php/SwxAssembler.php, line 145 (string)
Peter vdr Post
peter at webbrothers.biz
Thu Mar 13 02:18:15 PDT 2008
Hi,
First, thanks for such good frameworks like SWX. My name is Peter and
I'm the webdeveloper of a small company, named WebBrothers, which is
owned -as you may guess - by my brother (designer) and me. The
technology I'm working with, are Flash (AS2), ARP framework, AMFPHP
gateway with Flash Remoting, and backend database MySQL. I do write
simple programs for small companies, so, please, be kind if my
question seems too simple.
For a new project I'like to switch from Flash Remoting to SWX, which
should mean rewriting my (ARP derived) Command classes, but helas, I
do need some help. Hopefully, someone can give me a hint in the right
direction. Thanks in advance.
* message: Error 256: Unhandled data type (resource) in /......./php/
SwxAssembler.php, line 145 (string)
* The PHP-service I wrote, works correct in SWX Service Explorer
(returns array of the requested records).
* The problem, I think, is in following AS2 codesnippet, but I have
no clue:
// SWX
var swxPosts:SWX = new SWX();
swxPosts.gateway = ApplicationData.getInstance().gateway; //
localhost etc.
swxPosts.encoding = "POST";
swxPosts.debug = true; // SWX data analyzer...
var callPosts: Object = {
serviceClass: phpService,
method: "getAllPosts",
args: [tabelNaam],
result: [this, onPostsBinnen],
fault: [this, onFaultOperation],
timeout: [this, onTimeoutOperation]
}
swxPosts.call(callPosts);
Note: tracing variables tabNaam, phpService,
ApplicationData.getInstance().gateway, all return the proper value ...
I've tried one of my other PHP-service, which returns a list of
filenames on the server, and that one works okay (with Flash code).
The method getAllPosts of the phpService, returns a recordset from
the MySQL database:
...
function getAllPosts($table) {
return mysql_query("SELECT * FROM $table");
}
.....
thanks,
Peter van der Post
More information about the swx
mailing list