Details
Description
Getting my system to show the success message: "Zend Amf Endpoint" has been a long, difficult struggle.
Working with SuSE 11.1, PHP 5.2.9, Apache/2.2.10, ZendFramework-1.8.0
phpinfo() reports:
include_path .:/usr/share/php5:/usr/share/php5/PEAR:/srv/www/htdocs/ZendFramework-1.8.0/library
This is the contents of my index.php file sitting in the DocRoot folder (/srv/www/htdocs):
<?php
require_once 'Zend/Amf/Server.php';
require_once '/srv/www/htdocs/flextest/zendamf_remote/HelloWorld.php';
$server = new Zend_Amf_Server();
$server->setClass("HelloWorld");
$_handle = $server->handle();
I can only ever see the success message: "Zend Amf Endpoint" if I include the line:
$_handle = $server->handle();
Omitting that line and just saying
echo( $server->handle() );
Open 'http://localhost/index.php'?
Type: application/x-amf
As this took days of struggle for a Framework with "no installation", I need to know is this an error the documentation or is this the best practice server instantiation?
Thanks
- Alan Gruskoff
Need to add that my HelloWorld Flex example DOES work if I have the
The opposite is also true, if I remove the
It would be great to have a reliable benchmark that "if you see this -all is well".