ZF-6524: Zend AMF Server startup does not start provide expected "Zend Amf Endpoint"
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 ``` not only will not show "Zend Amf Endpoint", but all browsers I tested on, a dialog pops up to then ask to Download the index.php file: 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