473,420 Members | 2,160 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,420 software developers and data experts.

PEAR: Is it worth it?

me
Recent articles have got me looking at PEAR again. Because it is not
always available, is it worth getting tied to? After all, if I write
for it and it isn't there, my code won't work.
Jul 17 '05 #1
5 1904
me wrote:
Recent articles have got me looking at PEAR again. Because it is not
always available, is it worth getting tied to? After all, if I write
for it and it isn't there, my code won't work.


It is easy to install PEAR locally for your own scripts even on a shared
host. say you have a subdirectory called PEAR with all PEAR stuff in it.
This means you have to install PEAR manually, but remember that PEAR is
nothing more than a collection of PHP files.

So, even if PEAR isn't available on your shared host, you can install it
manually, and everything works. And YES, it is worth it!

asgeir
Jul 17 '05 #2
Asgeir Frimannsson wrote:

So, even if PEAR isn't available on your shared host, you
can install it manually, and everything works. And YES, it
is worth it!


Very much so. The database abstraction layer alone is a godsend.

bblackmoor
2004-03-18
Jul 17 '05 #3
me wrote:
Recent articles have got me looking at PEAR again. Because it is not
always available, is it worth getting tied to? After all, if I write
for it and it isn't there, my code won't work.


It will be there if you put it there, which is basically the same
operation as with any other php script. So don't care about this, and
just use it if it helps. Now is it worth 'getting tied to' it, only you
can answer.

My experience is that I first dismissed it, then found myself
reinventing the wheel. PEAR provides most of the building blocks for
most of the apps you could want to write in PHP.

Bruno

Jul 17 '05 #4
Brandon Blackmoor wrote:
Asgeir Frimannsson wrote:

So, even if PEAR isn't available on your shared host, you

> can install it manually, and everything works. And YES, it
> is worth it!


Very much so. The database abstraction layer alone is a godsend.


Hmm... Havent tried it, but sounds interesting.
Do you have a link to some info?

Mvh
Thomas Damgaard
Jul 17 '05 #5

Thomas Damgaard Nielsen wrote:
Brandon Blackmoor wrote:
Asgeir Frimannsson wrote:

So, even if PEAR isn't available on your shared host, you


> can install it manually, and everything works. And YES, it
> is worth it!


Very much so. The database abstraction layer alone is a godsend.

Hmm... Havent tried it, but sounds interesting.
Do you have a link to some info?


Search google for 'installing pear manually' or 'installing pear shared
host' or something...

Anyway, here's the easy way of doing it:
<?php

// assuming you have a directory called PEAR
// in your current directory with all pear
// packages unzipped there...
ini_set("include_path", 'PEAR/' . PATH_SEPARATOR . ini_get("include_path"));

require_once "PEAR.php";
require_once 'DB.php';

// then we're ready to rock
?>

asgeir
Jul 17 '05 #6

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

Similar topics

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():...
3
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts...
7
by: Michael G | last post by:
Hi, Is PEAR DB worth using? Slower? Other problems? Or should a person just wrap db functions in a user-defined class? Mike
39
by: Analysis&Solutions | last post by:
Greetings: Crack open the beer, PEAR DB 1.6.0 is here! (Hey, I'm a bit giddy with excitement that my intense work during the past seven weeks has come to fruition.) For those unfamiliar with...
0
by: bwhitehd | last post by:
I'm having a problem installing php. The compile seems to go fine, but when it gets to the install step I get the following errors. Does anyone have an idea of what might be the problem? We...
1
by: IchBin | last post by:
I am new to PHP and I am running on Windoze XP SP 2. Just noticed that the PEAR installed dir structure I have (to DB subdir) is : C:\php5.2\PEAR\pear\DB My registry vars are:...
1
by: CSTechie | last post by:
I've been battling to install PEAR on Windows XP now for too long. I am not sure what I need to do. When I run go-pear.php from the command line, I get the error message as shown at the end. I...
1
by: IchBin | last post by:
I remember having problems with pear when I first installed it but got it running some time ago. This is on a windoze XP SP OS. I did not think it was correct because it pointed to...
5
by: jeddiki | last post by:
I am building my subscriber list which is held in the mySQL database "client" table and I want to start sending them a newsletter. My list will probably get up to around 20,000 I would like...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.