修改PHPReportsUtil.php中的getPHPReportsFilePath()方法的返回值为文档存储路径,默认修改为PHPReports的安装路径即可,后面的部分程序自动找到:function getPHPReportsFilePath(){
$sPath = getPHPReportsIncludePath();
if(!is_null($sPath))
return $sPath;
// put your distro path here
return "/var/htdocs/phpreports/";
}
sales.php中修改
$oRpt->setUser("root"); //数据库用户名
$oRpt->setPassword(""); //密码
$oRpt->setXML("sales.xml"); //XML文件,sales.xml是一个例子sales.xml中
<CSS>http://localhost/phpreports2/sales.css</CSS>
<SQL>select CITY,NAME,TYPE,ITEM,VALUE from sales order by CITY,NAME,TYPE,ITEM</SQL>
<CONNECTION>localhost</CONNECTION>
<INTERFACE>mysql</INTERFACE>
<DATABASE>phpreports</DATABASE>
........后面都是相关部分,全部修改,挺麻烦的
我的运行环境Apache 1.3.33 + PHP 5.0.4详细的PDF文档在SourceForge
http://switch.dl.sourceforge.net/sourceforge/phpreports/phpreports_manual-20050629.pdf
$sPath = getPHPReportsIncludePath();
if(!is_null($sPath))
return $sPath;
// put your distro path here
return "/var/htdocs/phpreports/";
}
sales.php中修改
$oRpt->setUser("root"); //数据库用户名
$oRpt->setPassword(""); //密码
$oRpt->setXML("sales.xml"); //XML文件,sales.xml是一个例子sales.xml中
<CSS>http://localhost/phpreports2/sales.css</CSS>
<SQL>select CITY,NAME,TYPE,ITEM,VALUE from sales order by CITY,NAME,TYPE,ITEM</SQL>
<CONNECTION>localhost</CONNECTION>
<INTERFACE>mysql</INTERFACE>
<DATABASE>phpreports</DATABASE>
........后面都是相关部分,全部修改,挺麻烦的
我的运行环境Apache 1.3.33 + PHP 5.0.4详细的PDF文档在SourceForge
http://switch.dl.sourceforge.net/sourceforge/phpreports/phpreports_manual-20050629.pdf
今天运行终于有点提示了:
---------------------------------------------------
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in D:\WebSamples\OpenSource\phpreports\PHPReportMaker.php(153) : eval()'d code on line 94
---------------------------------------------------
看了半天没看懂,能帮忙解答一下吗?
今天运行终于有点提示了:
---------------------------------------------------
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in D:\WebSamples\OpenSource\phpreports\PHPReportMaker.php(153) : eval()'d code on line 94
---------------------------------------------------
看了半天没看懂,能帮忙解答一下吗?
上面的那个warning,你只要去修改你的php.ini allow_call_time_pass_reference = On 就可以了
虽然phpreport功能比较强大,但是当你根本就不知道自己的字段是什么的时候,也就是你的数据库字段也是变量的时候。他就用不上力了