易截截图软件、单文件、免安装、纯绿色、仅160KB

Flash使用AMF与PHP通信 - PHP / 开源资源

Flash使用AMF与PHP通信
2009年04月15日 08:27 P.M.
1, 下载 amfphp 及其示例代码 : http://www.amfphp.org/ 
2, amf核心放web目录,示例代码中的 services 放核心对应目录下
3, 修改 Main.as 的 gateway:String = "http://localhost/amfphp/gateway.php" 指向 web 目录
4, 修正: 核心中默认打开了session,不要就删掉session_start()
  如果数据库是UTF-8编码,gateway.php中的编码设定: $gateway->setCharsetHandler("none", "ISO-8859-1", "ISO-8859-1");
  作为加速,可加载AMFEXT扩展,使服务器支持AMF格式的编/解码: 
  http://www.teslacore.it/wiki/index.php?title=AMFEXT

Linux下的安装: 
sh# tar -zxvf amfext*.tgz 
sh# cd amfext* 
sh# phpize
sh# ./configure
sh# make
sh# make install 
将提示在相应目录下生成了: amf.so 文件 
拷贝至扩展目录,并在php.ini文件下加入: 
extension=amf.so 
重启apache

gateway.php设置:
$gateway->setCharsetHandler("none", "ISO-8859-1", "ISO-8859-1"); //数据库UTF-8编码时调这个 
$gateway->logIncomingMessages('./in/'); //调试用.flash传递过来的参数都会保存到此目录下,通过$HTTP_RAW_POST_DATA或php://input获取
$gateway->logOutgoingMessages('./out/'); //调试用.返回给flash的数据都会保存到此目录下
$gateway->disableNativeExtension(); //禁用服务器amf扩展,如果加载了amfext扩展,由于此扩展有缺陷,就应该调用这个
$gateway-&


相关问答:

问一个PHP和smarty的日期问题 - PHP / 基础编程

index.php内容:
  $smarty->assign('name',strtotime('-0'));
  $smarty->display("index.html");
index.html内容:
{$name|date_format:'%Y-%m-%d'}<hr>
{$ ......

php网站发布问题! - PHP / 基础编程

菜鸟求救!!
  现在我手头有一个php+oracle的网站。。服务器是linux系统
  
  请各位告诉我如何发布。。。我是新手。谢谢了!!
安装一个apache,把php文件放到apache的发布目录下, ......

php如果获取当前页面网址并输出 - PHP / 基础编程

就是我在某个网页插入了一个php链接
我想获得那个网址的地址而且要输出txt格式或其他格式。应该如何实现???

引用
PHP code
<?php
if(!file_exists("ceshi.txt")){
fopen("ceshi. ......

PHP submit问题(急,在线等) - PHP / 基础编程

<?php
@session_start(); 
require_once './module/t_doctor.inc';
$t_doctor = new t_doctor();
if(isset($Submit)){
  $sql="select * from t_doctor WHERE docname='".$usernam ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号