Should I use PEAR or not?

Discussion in 'PHP' started by Jezz, Aug 16, 2008.

  1. #1
    Hi I'm new to php and I've been busy reading up, learning etc.
    I now have a good grasp on the language in general.
    (I have some previous experience with C#)

    But I'm a bit lost when it comes to dependencies.

    What sort of class library's can I expect to find installed on a typical shared hosting server?

    Would most of these servers have the majority of PEAR modules installed?
    And things like the mcrypt extension etc. should I assume it will be available or should I avoid using things like this?

    Ideally it would be nice to be able to include everything the script needs within the distribution, but this doesn't seem to be practical
    (or even possible)

    Any advice you guys could give me would be great :)
     
    Jezz, Aug 16, 2008 IP
  2. pluswebdev

    pluswebdev Banned

    Messages:
    205
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    imo, PEAR is useful if you run it on your own server. You can't always expect up to date versions of PEAR packages installed on shared hosting.
    My advice, use some PHP Framework, for example Zend Framework
     
    pluswebdev, Aug 16, 2008 IP
  3. Jezz

    Jezz Active Member

    Messages:
    208
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Thanks for your reply :)
    Yeah i didn't think using these classes would be a good idea.
    I'm not sure if I want to go with a framework though.
     
    Jezz, Aug 17, 2008 IP