简体   繁体   English

无法在梨MDB2软件包中重新声明类mdb2_error

[英]Cannot redeclare class mdb2_error in Pear MDB2 package

I haven't install pear in my PC,instead I download the packages and unzip them to "libs" dictionary in my web-app.the structure of dictionary of my web-app is roughly like this: 我尚未在PC上安装pear,而是下载了软件包并将其解压缩到Web应用程序中的“ libs”字典中。Web应用程序的字典结构大致如下所示:

web-app
  +-/backend
    +-/libs
      +-/peardb
        +-pear.php
        +-pear5.php
        +-mdb2.php
        +-/mdb2

The application works fine in my two PCs,but throws "Cannot redeclare class mdb2_error" error while it running in virtual host. 该应用程序可以在我的两台PC上正常运行,但是在虚拟主机中运行时会引发“无法重新声明类mdb2_error”错误。

使用include_once / require_once通常可以解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM