SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why must hosts have PEAR installed?

    PEAR is a code library. Cool. But why should a host have it installed? I could just download PEAR myself and require() some of the files that I need. Then I could upload it just as all the other files of my project.

    Am I missing anything here?

  2. #2
    SitePoint Wizard Dangermouse's Avatar
    Join Date
    Oct 2003
    Posts
    1,024
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I thought PEAR has some base libraries that need to be 'installed', then all the packages that depend on PEAR use the PEAR libraries 'installed'?

  3. #3
    does not play well with others frezno's Avatar
    Join Date
    Jan 2003
    Location
    Munich, Germany
    Posts
    1,391
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    With PHP >4.3.0 the PEAR base installation is already there - unless you have compiled your PHP without it

    More info on that at Pear's HP Chapter 2. Installation
    We are the Borg. Resistance is futile. Prepare to be assimilated.
    I'm Pentium of Borg.Division is futile.Prepare to be approximated.

  4. #4
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah so the libraries that you use use code from the "installed" libraries. That makes sense, yes.

    But then again you could just upload all you need, including the "installed" libraries, no ?

  5. #5
    SitePoint Enthusiast ganesch's Avatar
    Join Date
    Feb 2004
    Location
    Zürich, Switzerland
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I read that with the PEAR package manager it is very easy and comfortable to add new packages or upgrade existing ones.

    Unfortunately my hosting provider told me yesterday that I can't install the PEAR package manager on my webspace because of a bug in the current PHP version (they use 4.3.6)

    So it seems that I'm forced to renounce the package manager's ease and comfort

  6. #6
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,650
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    I have the same problem with a host who will not install PEAR on a shared server. My workaround is to "install PEAR" on my test server then transfer the files to the host -- in one of my directories and adding that directory to the path.

    Bummer -- but it IS possible.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


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
  •