473,738 Members | 10,068 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1920
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("includ e_path", 'PEAR/' . PATH_SEPARATOR . ini_get("includ e_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
3551
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(): Unable to load dynamic library '/usr/lib/php4/20020429/PEAR.so'- /usr/lib/php4/20020429/PEAR.so: cannot open shared object file: No such file or directory in /home/sandro/src/php/mbox/PEAR.php on line 11 in fact PEAR.so is not there, nor it seems...
3
7244
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 it tells mea it can not run pear/soap, because it can not be found.the book im learning form does not tell me how to install or configure this extension. so now im looking for help.
7
620
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
3668
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 PEAR DB, it's a package of PHP classes that provide an object oriented API with common methods of accessing thirteen of PHP's database driver extensions: dBase, FrontBase, InterBase, Informix, mSQL, MS SQL Server,
0
2044
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 build our applications under three different environments (Linux i686, Linux x86_64, Solaris 8 Sparc). This is the first of the three on a RHEL 3 system using the current stable versions of the GNU toolchain in a segregated environment. Basically...
1
2225
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: "PHP_PEAR_SYSCONF_DIR"="C:\\php5.2\\PEAR" "PHP_PEAR_INSTALL_DIR"="C:\\php5.2\\PEAR\\pear" "PHP_PEAR_DOC_DIR"="C:\\php5.2\\PEAR\\pear\\docs" "PHP_PEAR_BIN_DIR"="C:\\php5.2\\PEAR" "PHP_PEAR_DATA_DIR"="C:\\php5.2\\PEAR\\pear\\data"
1
7842
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 included everything in case there is something there that's helpful. I'm trying to install PEAR so that I can use PHPUnit. Thanks for the help!!!!
1
13668
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 "C\php\pear\PEAR". I writing a pear front-end GUI and I want to have it installed correctly. It seemed to have some duplication of directories between the lower and upper cased pear dir names. Should there be a "php\pear\PEAR" subdirectory? I thought it should...
5
7709
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 know if emails are getting through of if they are being rejected, so I can keep the subscriber list clean. I would also like to send HTML email but with an alternative text email for those that don't except HTML. Now, I was just going to use php...
0
8969
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9335
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.