amfphp2.0配置

来源:互联网 发布:淘宝招商条件 编辑:程序博客网 时间:2024/06/15 10:09
一、解压amfphp2.0中的amfphp到服务器目录下如htdocs/,其它的可不要;
二、将php文件放在htdocs/amfphp/Services中;
三、将amfphp目录下的index.php文件改为:
<?php
/**
*  This file is part of amfPHP
*
* LICENSE
*
* This source file is subject to the license that is bundled
* with this package in the file license.txt.
* @package Amfphp_Examples
*/

/**
* a gateway php script like the normal gateway except that it uses example services
* @author Ariel Sommeria-klein
*/
require_once dirname(__FILE__) . '/ClassLoader.php';
$config = new Amfphp_Core_Config();
$config->serviceFolderPaths = array(dirname(__FILE__) . "/Services/");
$gateway = Amfphp_Core_HttpRequestGatewayFactory::createGateway($config);
$gateway->service();
$gateway->output();?>
四、打开127.0.0.1/amfphp,就要看到Services文件夹中的文件了。
望高手赐招:中文乱码该如何解决?应当如何配置config文件:其中有个类htdocs\Amfphp\Plugins\AmfphpCharsetConverter\AmfphpCharsetConverter.php。
原创粉丝点击