|
From: Alon Z. <alo...@gm...> - 2007-09-29 18:58:54
|
<amf...@li...>Hi List,
I am developing an online game which usages AMFPHP to save and read data
from a mysql database. The application seems to fail to connect with the
mysql database, (all the other functionality is behaving in the right manner
- even objects in related classes to the service class).
here is my connect function
function connect( $dns ) {
$h = $dns[ 'hostspec' ] ;
$u = $dns[ 'username' ] ;
$p = $dns[ 'password' ] ;
$this->db = @mysql_connect( $h, $u, $p );
@mysql_select_db( $dns[ 'database' ] );
if ( !$this->db ) {
die( 'MySQL Error: ' . mysql_error() );
} else {
$this->db_name = $dns[ 'database' ];
$this->connected = true;
}
and the return error is:
(Object)#0
message = "faultCode:INVALID_AMF_MESSAGE faultString:'Invalid AMF message'
faultDetail:''"
name = "Error"
rootCause = (null)
any idea what could be the issue?
would pay for anyone who is capable of solving this issue.
Thanks in advance,
Alon
|