+ -
当前位置:首页 → 问答吧 → Apache Tomcat+Quercus+RadPHP 解析出错的问题

Apache Tomcat+Quercus+RadPHP 解析出错的问题

时间:2011-04-08

来源:互联网

最近学习RadPHP,直接用RadPHP自带的Apache服务配置是可以运行。我想用Apache2.2.17版本,做服务器,也安装PHP5.3.6,可是配置运行不起来。
  在网络上找到别人用Apache Tomcat + Quercus,可以解析RadPHP。我也下载Apache Tomcat 7.0.12+ Quercus-4.0.11.war
,参照其说明。是可以运行。页面也解析运行成功。
PHP code

<?php
require_once("rpcl/rpcl.inc.php");
//Includes
use_unit("forms.inc.php");
use_unit("extctrls.inc.php");
use_unit("stdctrls.inc.php");

//Class definition
class Page1 extends Page
{
    public $Edit1 = null;
    public $Button1 = null;
    public $Label1 = null;
    function Button1Click($sender, $params)
    {
        $this->Edit1->Text="测试一下";
    }
    function Page1Create($sender, $params)
    {
        
    }
}

global $application;

global $Page1;

//Creates the form
$Page1=new Page1($application);

//Read from resource file
$Page1->loadResource(__FILE__);

//Shows the form
$Page1->show();

?>




可是点一下按钮,却会出错,提示信息如下:
Application raised an exception class Exception with message 'The Input Filter PHP extension is not setup on this PHP installation, so the contents returned by Input is *not* filtered'
Click for detailed information

C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\t1\rpcl\classes.inc.php:136: Warning: file name must not be null [error_log]

作者: lxycsdn   发布时间: 2011-04-08

Apache2.2.17要装只能vc6非nts版php5.3.x,而PHP5.3.6目前好像没有vc6版,所以你装不上和redphp问题不大

很明显的问题是,你Apache Tomcat + Quercus缺乏必要的php扩展!

作者: hnxxwyq   发布时间: 2011-04-09

热门下载

更多