开发者

Cannot redeclare class mdb2_error in Pear MDB2 package

开发者 https://www.devze.com 2022-12-10 12:30 出处:网络
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 开发者_如何学JAVAroughly like this:

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 开发者_如何学JAVAroughly like this:

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.


Using include_once / require_once can usually solve this problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消