amfphp2.0配置

一、解压amf php2.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 Somme ria-klein
*/
require_once dirname(__FILE__) . '/Class Loader.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。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值