PHP::Pear

Discussion in 'PHP' started by cancer10, Feb 2, 2009.

  1. #1
    Hi

    Since Pear are just Classes written in PHP, why cannot we just use them directly in our code just as we include normal class pages? Why do we have to install the Pear package before using them?


    Thanx
     
    cancer10, Feb 2, 2009 IP
  2. NuLLByTe

    NuLLByTe Active Member

    Messages:
    382
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    80
    #2
    Well, because it is a framework. It is like jQuery and JavaScript :)
     
    NuLLByTe, Feb 2, 2009 IP
  3. cancer10

    cancer10 Guest

    Messages:
    364
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Correct, but we never install jQuery, which is like plug and play.
     
    cancer10, Feb 2, 2009 IP
  4. harrisunderwork

    harrisunderwork Well-Known Member

    Messages:
    1,005
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    135
    #4
    I think you can directly include them too, if they are in root directory. Just like smarty classes, they can be installed and used directly too.
     
    harrisunderwork, Feb 2, 2009 IP