最近学习RadPHP,直接用RadPHP自带的Apache服务配置是可以运行。我想用Apache2.2.17版本,做服务器,也安装PHP5.3.6,可是配置运行不起来。
在网络上找到别人用Apache Tomcat + Quercus,可以解析RadPHP。我也下载Apache Tomcat 7.0.12+ Quercus-4.0.11.war
,参照其说明。是可以运行。页面也解析运行成功。<?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 informationC:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\t1\rpcl\classes.inc.php:136: Warning: file name must not be null [error_log]
在网络上找到别人用Apache Tomcat + Quercus,可以解析RadPHP。我也下载Apache Tomcat 7.0.12+ Quercus-4.0.11.war
,参照其说明。是可以运行。页面也解析运行成功。<?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 informationC:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\t1\rpcl\classes.inc.php:136: Warning: file name must not be null [error_log]
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货