Installing Zend AMF

Hello Kirupians,

This might be quite a noob question for PHP gurus but is giving me some problems.
I have put my Zend folder inside a folder called ‘frameworks’ located in the same directory of my php files.

When I invoke the PHP instead of running the script my browser downloads the file!

Here is the code I’m using:


<?php

error_reporting(E_ALL | E_STRICT);

ini_set("display_errors", "on");

ini_set("include_path", ini_get("include_path") . ":frameworks" );

require_once 'frameworks/Zend/Amf/Server.php';
require_once 'test.php';

$server = new Zend_Amf_Server();
$server->setClass("test");

echo($server->handle());


?>


Any ideas? Thanks!