PHP on Pear

PHP on Pear

am 15.10.2009 19:49:06 von Vinay Kannan

--0016367b6b3659cd9f0475fce532
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I've been programming on PHP for almost a year now, many examples that I've
gone through or some of the reference books that I've read and many websites
which show examples of PHP pgramming seem to be using PEAR package, and I've
never used PEAR or any other Package, I was wondering whats the advantage of
using PEAR instead of the using PHP directly in the code or maybe even
creating our own functions in PHP.

I am really confused about this now, earlier I used to neglect these things,
but now I curious and getting a little impatient coz I am starting some work
on a project for myself, and I would want to keep changing the code all the
time.

Can someone guide me on this please?


Thanks,
Vinay Kannan.

--0016367b6b3659cd9f0475fce532--

Re: PHP on Pear

am 16.10.2009 00:00:30 von dmagick

Vinay Kannan wrote:
> Hello,
>
> I've been programming on PHP for almost a year now, many examples that I've
> gone through or some of the reference books that I've read and many websites
> which show examples of PHP pgramming seem to be using PEAR package, and I've
> never used PEAR or any other Package, I was wondering whats the advantage of
> using PEAR instead of the using PHP directly in the code or maybe even
> creating our own functions in PHP.

Pear is reusable code and a package has been tested with a variety of
websites using it. They have documentation, it's clear and concise. Most
of the time they will also handle errors you haven't thought of (because
a package has been tested so much). They are also designed to run on any
system and have no hardcoded assumptions.

They also have quality control measures in place so packages have to
live up to a high standard to be included.

Check out the list of packages available: http://pear.php.net/packages.php

The only package that should replicate php functions is the 'PHP_Compat'
package to provide older php versions with new functions.

--
Postgresql & php tutorials
http://www.designmagick.com/


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php