Does php use amf3 to communicate with flex? should all content be written in class and class functions? does require (includessq_init.php) not support it? Global variables cannot be used either? Php uses amf3 with flex communication location amfphp-2.1.1AmfphpServicesHelloWorld.php & lt ;? Phprequire (includesinit. php); does php use amf3 to communicate with flex? should all content be written in class and class functions? does require (/includes/sq_init.php) not support it? Global variables cannot be used either?
Php uses amf3 to communicate with flex
Location amfphp-2.1.1/Amfphp/Services/HelloWorld. php
Require ('/des/init. php'); // this line does not seem to work.
Class HelloWorld
{
Public function sayHelloWorld ($ value)
{
$ GLOBALS ['DB']; // this line does not seem to work either.
Echo $ value;
Return "AMF-RPC for PHP". $ value;
}
}
?>
Share: More
------ Solution --------------------
Paste the init. php code.
------ Solution --------------------
Global $ db;
------ Solution --------------------
Check whether the referenced file path is correct. This may cause the following global variables to be invalid!
------ Solution --------------------
Require ('/des/init. php ')
It should be that your path is incorrect...