Getting started with PEAR

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shelly

    Getting started with PEAR

    I have been coding for almost 40 years, but only two months with php. I
    found www.php.net and it has a lot. I downloaded ZipCodeRange and it called
    for stuff, including DB.php. I was directed to look at pear.php.net. I did
    that, and started reading the manual.

    What I cannot seem to find is how to SIMPLY use this stuff.
    a - I don't know where to find db.php
    b - I haven't been able to find an explanation of the syntax (e.g.
    DB::connect)
    c - How to actually USE the class.

    Can someone help me out with some simple instructions to get started? Once
    I am moving I can take it from there.

    Shelly


  • Peter Binderup

    #2
    Re: Getting started with PEAR

    Shelly wrote:[color=blue]
    > What I cannot seem to find is how to SIMPLY use this stuff.
    > a - I don't know where to find db.php[/color]

    When you install PHP PEAR is also installed. If you want to add a
    package then just in a commandline enter: pear install DB
    that should take care of it
    [color=blue]
    > b - I haven't been able to find an explanation of the syntax (e.g.
    > DB::connect)[/color]

    That is the way PHP call a method in a class directly without creating
    an object first.
    [color=blue]
    > c - How to actually USE the class.[/color]

    on the PEAR website there are documentation for most of the classes, som
    of the documentation is perhaps not the best written stuff, but I have
    found the most documentation useful
    [color=blue]
    > Can someone help me out with some simple instructions to get started? Once
    > I am moving I can take it from there.[/color]

    A search on google turned up several hits on: pear tutorial
    [color=blue]
    > Shelly[/color]

    Peter

    Comment

    • Chung Leong

      #3
      Re: Getting started with PEAR

      In my opinion, PEAR is more pain than it's worth.

      Comment

      • Noel

        #4
        Re: Getting started with PEAR

        On 9 Jul 2005 20:37:01 -0700, "Chung Leong"
        <chernyshevsky@ hotmail.com> wrote:
        [color=blue]
        >In my opinion, PEAR is more pain than it's worth.[/color]

        Its just as well you are not forced to use it then, isn't it? ;-)

        Comment

        Working...