flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bilbosax <waspenc...@comcast.net>
Subject RemoteObject, PHP, and Zend
Date Thu, 05 Oct 2017 02:23:59 GMT
I am new to PHP, so I apologize for my inexperience. I am working in a
Windows 10 environment and have installed WAMP to serve Apache, PHP, and
MySQL. I am creating some remoteObject webservices for an Adobe AIR app that
will communicate with Zend using AMF, and I have created an index.php file
to get everything in motion, but when I browse to the index.php file in
chrome, I get all kinds of errors. Here is the index.php file:

       $server = new Zend_Amf_Server();
       //adding our class to Zend AMF Server
       //Mapping the ActionScript VO to the PHP VO
       //you don't have to add the package name
       $server->setClassMap("VOService", "VOService");
       echo($server -> handle());

*My file structure in WAMP is as follows:*


*I tried to create a include_path in my php.ini file that looks like this,
but it did not work:*

    include_path = “c:\wamp64\www\ZendFramework\library”

*Finally, this is the error that I get when I browse to index.php in a

    ( ! ) Warning: require_once(Zend/Amf/Server.php): failed to open stream:
No such file or directory in C:\wamp64\www\zendamf_remote\index.php on line
    ( ! ) Fatal error: require_once(): Failed opening required
'Zend/Amf/Server.php' (include_path='�c:\wamp64\www\ZendFramework\library�')
in C:\wamp64\www\zendamf_remote\index.php on line 2

I thought that surely someone here might have tried to create their own
RemoteObjects to try and communicate with a database in AMF.  Any help at
all in getting this configured would really be appreciated.  Thanks so much!

Sent from: http://apache-flex-users.2333346.n4.nabble.com/

View raw message