修改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

解决方案 »

  1.   

    我改过了啊,但还是一样,我的环境是WINDOWS2000,APACHE2,PHP5,不知道有没有影响?
      

  2.   

    各位高人,这个问题还是没解决啊,
    今天运行终于有点提示了:
    ---------------------------------------------------
    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
    ---------------------------------------------------
    看了半天没看懂,能帮忙解答一下吗?
      

  3.   

    各位高人,这个问题还是没解决啊,
    今天运行终于有点提示了:
    ---------------------------------------------------
    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 就可以了
      

  4.   

    其实这个东西。什么都不需要修改。
    虽然phpreport功能比较强大,但是当你根本就不知道自己的字段是什么的时候,也就是你的数据库字段也是变量的时候。他就用不上力了