473,395 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

PEAR: is it really necessary?

Hi all,

I've been using PHP for a while now but I haven't actually used PEAR. I
have just read half a chapter in a book, it sounds alright but haven't
actually used it. I was just wondering, is it really necessary to use
PEAR? I usually get things done using PHP/MySQL. I don't know if I'm
really missing out on something by not using PEAR. How highly is it
recommended? On most job ads, i don't even see them mentioning PEAR.
They mostly just say PHP/MySQL.. Why is that? Don't people like PEAR
much?

Thanks
Ben

Jul 28 '06 #1
5 1485
Rik
cr*********@yahoo.com wrote:
Hi all,

I've been using PHP for a while now but I haven't actually used PEAR.
I have just read half a chapter in a book, it sounds alright but
haven't actually used it. I was just wondering, is it really
necessary to use PEAR? I usually get things done using PHP/MySQL. I
don't know if I'm really missing out on something by not using PEAR.
How highly is it recommended? On most job ads, i don't even see them
mentioning PEAR. They mostly just say PHP/MySQL.. Why is that? Don't
people like PEAR much?
It's just a way to avoid coding something that already has been coded better
& more dynamic by others. It's not necessary to use it, but in big projects
it will save you a lot of time.

Grtz,
--
Rik Wasmus
Jul 28 '06 #2
>
It's just a way to avoid coding something that already has been coded
better
& more dynamic by others. It's not necessary to use it, but in big
projects
it will save you a lot of time.
I agree that sharing knowledge and ready-to-use class can be usefull. But it
is not necessary "coded better" nor more "dynamic" :). Moreover, the danger
is that in case of a bug, you have to learn how it works before you can do
correction.

So PEAR is to be used carefully in my opinion :)
Jul 28 '06 #3
If you're working in PHP 4.x PEAR is a separate piece of the puzzle,
and is basically just a bunch of code written in an Object Oriented
fashion. There's also PECL ("pickle") that re-creates much of the PEAR
objects in C, so they're compiled and run faster.

PEAR is built into PHP 5 from what I understand (just starting to work
in it now) so it's not "necessary" but it's available if you want to
use it for things like emailing, database connection (PDO), performance
monitoring, etc.

I didn't come from an OO background when I started with PHP, so I
didn't mess with PEAR or much of the OO model in 4. Since I've heard
good things about 5's implementation, I'm trying to wrap my brain
around it now.

HTH.
D.
cr*********@yahoo.com wrote:
Hi all,

I've been using PHP for a while now but I haven't actually used PEAR. I
have just read half a chapter in a book, it sounds alright but haven't
actually used it. I was just wondering, is it really necessary to use
PEAR? I usually get things done using PHP/MySQL. I don't know if I'm
really missing out on something by not using PEAR. How highly is it
recommended? On most job ads, i don't even see them mentioning PEAR.
They mostly just say PHP/MySQL.. Why is that? Don't people like PEAR
much?

Thanks
Ben
Jul 28 '06 #4

DonO wrote:
If you're working in PHP 4.x PEAR is a separate piece of the puzzle,
and is basically just a bunch of code written in an Object Oriented
fashion. There's also PECL ("pickle") that re-creates much of the PEAR
objects in C, so they're compiled and run faster.

PEAR is built into PHP 5 from what I understand (just starting to work
in it now) so it's not "necessary" but it's available if you want to
use it for things like emailing, database connection (PDO), performance
monitoring, etc.

I didn't come from an OO background when I started with PHP, so I
didn't mess with PEAR or much of the OO model in 4. Since I've heard
good things about 5's implementation, I'm trying to wrap my brain
around it now.

HTH.
D.
It should be noted almost none of PEAR is written in PHP5. This means
that it doesn't take advantage of any of the really new and nifty
object constructs. The advantage is it is backwards compatible with
almost any PHP version.

PEAR is not built into PHP. I believe a few packages are included in
the default download, but most aren't. The pear installer does come
with php, though, and you can use that to download andinstall any of
the pear packages. If possible, I suggest using PECL, since the speed
and quality is generally much better (the downside is there aren't as
many packages that aren't beta or alpha).

BTW - please don't top post

Jul 28 '06 #5
*** Richard Levasseur escribió/wrote (28 Jul 2006 09:00:33 -0700):
PEAR is not built into PHP. I believe a few packages are included in
the default download, but most aren't. The pear installer does come
with php, though, and you can use that to download andinstall any of
the pear packages.
I've recently installed latest PHP 5 release under Windows and the bundled
PEAR script didn't even work correctly: I had to get a working one from
PEAR web site.
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Aug 2 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dan Finn | last post by:
usinng php-4.3.4 using this for my configure script; ../configure --with-pear=/usr/local/lib/pear --with-mysql --with-apxs=/usr/sb in/apxs --enable-track-vars --with-mysql-sock=/tmp/mysql.sock...
8
by: red | last post by:
I have PHP Version 5.0.1 installed on my computer, and according to the pear manual pear is already installed. But how do I tell if it is installed ? for example, how do I get this line, which I...
0
by: Chris | last post by:
Hi, i have been trying to install PEAR PHP package on my windows XP system but i am having some problems. I am running PHP 5.0.0, with Apache 2.0.50, and i am using the go-pear.php install...
3
by: Sandro Dentella | last post by:
I need to use a class to handle mbox files that uses PEAR. Since I'm using Debian (both woody and, I simply apt-get(ed) php4-pear but I can't use it becouse I get the error: Warning: dl():...
1
by: DJ Majestik | last post by:
OK, I am new to the whole PEAR/Smarty templating thing. I am trying to setup my directory structure correctly. If someone could weigh in and see if I have this setup "right", I would appreciate it....
1
by: webguynow | last post by:
I'm trying to build a good DB Layer on top of Pear::DB Are there any forums or knowledge base sites on this direct topic ? I've been using the documentation at:...
2
by: Alan Little | last post by:
I'm starting to look into PEAR, and it looks like there's some interesting stuff in there. I'm wondering how much I can rely on it for a distributed app. If I understand correctly, it's now...
0
by: Nichu | last post by:
Hello Lately I started to "bravely fight" with Postfix + Squirrelmail everything works great (PHP also :)) but I want to have possibility to change passwords (from MySql database) through the...
3
by: mpar612 | last post by:
I am stumped. Below is my code and it doesn't work (I removed the $login info for posting). PHP Code: require 'PEAR/DB.php'; // Connect to the database $db = DB::connect($login); if...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.