SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2005
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem with including the pear mdb2

    Hi!

    I have problem with including mdb2 package to the system.
    i have file structure:


    /lib
    /lib/pear
    /lib/pear/mdb2
    /webservices

    i have script in webservice folder and it is using mdb2. if mdb2 files and its folders are in webservice directory, it is no problem with script.
    If i move the mdb2 files under the pear folder and will change in incldue dir to ../lib/pear/mdb2.php then will get the problem:

    Warning: require_once(MDB2.php) [function.require-once]: failed to open stream: No such file or directory in /some/dirs/lib/pear/MDB2/LOB.php on line 53

    In server I can not change environment values.
    but i would like to keep mdb2.php file in the lib pear folder.
    Also some other packages are in the pear folder and they are working fine without any problem.

    any kind of help will be useful,
    thanks

  2. #2
    play of mind Ernie1's Avatar
    Join Date
    Sep 2005
    Posts
    1,252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    my mobile portal
    ghiris.ro

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2005
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    unfortunately this didn't help me
    There is good introduction but nothing about the include(../mdb2.php) problem.
    I noticed there a part:

    It's recommended you install it using the Pear installer, like the following :
    pear install MDB2

    What probably will solve the problem, but have to make the code what is in one package and no need to extra movements.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •