View Full Version : Pear and my hair
Wuffles
12-03-2003, 01:25 PM
I need to keep my hair. So getting pear working with a shoutbox thing I am playing with would stop me from tearing it out.
Presumably this requires some kind of path statement from somewhere, cos the vanilla script is falling over when trying to include DB.php (part of the pear installation - which is supposedly included now with PHP distros).
Anyone else used it and got it working?
Ta in advance.
Wuffles
13-03-2003, 11:16 AM
Only 24 strands left. Someone must know the answer to this.
/me looks directly at Andy :confused:
dpainter
13-03-2003, 01:52 PM
I'm not sure that any PHP 'distros' include php scripts as such. I mean they just use the main .exe and DLLs for supporting functions.
Maybe the database connection string isn't working?
Does the path match correctly?
Wuffles
13-03-2003, 02:00 PM
Umm, what path? That's what I am asking for.
Only mention of PEAR on this forum so far is:
"PEAR is part of PHP and is available for use, yes" from Andy.
Instructions I have are:
1. extract the package file
2. choose directory where the shoutbox will reside in your web directory
3. change all *.php, *.html and graphics files (in graphics/) directory to be readable by the web
4. make an archive/ directory and make it writeable by the webserver also, copy shoutbox.css to the archives directory or make a symlink
5. run the shoutbox.sql file on your mysql server to add the table
6. take the section in example1.html with the shoutbox and put it in your webpage (or just use example1.html for now)
7. change settings in phpshoutbox_config.php, particularly your database info*
8. visit the webpage with your shoutbox and post away
* make sure you have DB.php from PEAR (pear.php.net)...most servers have this already
dpainter
13-03-2003, 02:05 PM
I'll reply back this afternoon if I can think of anything that'll help you. That's a lot of steps that needs to be followed. Don't they have a shell script to change all those permissions? :confused:
Wuffles
13-03-2003, 02:10 PM
I've done all of that, only takes a second. Just left trying to figure out where to path PEAR.
dpainter
13-03-2003, 02:17 PM
Oh, I see what PEAR is now. Nope, never dealt with it myself, nor has any of the PHP ppl I know. Looks interesting, though.
What shoutbox script / version are you using?
Wuffles
13-03-2003, 02:34 PM
It's from http://mojavelinux.com - under GPL Licence. If you know of a better one that doesn't use PEAR it'd be handy, but I suspect this PEAR thing will come back and bite me in the future.
/usr/lib/php
Sorry, been amazingly busy and missed this thread :(
hope the above helps.
Andy
RedactUK
24-09-2003, 11:32 PM
Need some help on this too please :)
I'm trying to:
require_once("Mail.php");
require_once("DB.php");
in my PHP application, and I have an .htaccess file set to:
php_value include_path ".:/usr/lib/php:/home/music/public_html/_lib/_base:/home/music/public_html/_lib/_classes:/home/music/public_html/site:/home/music/public_html/core:/home/music/public_html/pear"
As I've included /usr/lib/php/ any one see why my browser reports:
Warning: main(Mail.php): failed to open stream: No such file or directory in /home/music/public_html/_lib/_classes/class.accounts.php on line 5
You need /usr/local/lib/php/ in that bunch :)
RedactUK
24-09-2003, 11:43 PM
thanks Andy that worked :)
ncoded
18-06-2008, 04:35 PM
Andy,
I have checked all over this forum and I cannot *see how to setup and use PEAR.
I noticed some PEAR in CPanel, asked for it to install Auth_HTTP, and it seemed to have installed all the useful PEAR packages.
However, not knowing LINUX (from a networking point of view, eg Windows user) setting up the include paths baffale me somewhat.
I think you mentioned usr/local/php - or something similar. The problem is that I do not know what to do with that!
So, can you help me get say 1 PEAR module working, and then I will write 'an idiots guide to PEAR on Flump/123Reseller' so that this topic does not keep comming up..
Thanks in advance,
Chris
vBulletin® v3.6.8, Copyright ©2000-2010, Jelsoft Enterprises Ltd.