PDA

View Full Version : Need help troubleshooting PEAR/DB


Rrotz
07-17-2003, 11:07 PM
Having problems installing PEAR, does anyone have documentation on PEAR and DB? We are having a number of PARSE errors when installing PEAR. Here are the test URLS.

http://indiemediamagazine.com/php/peartest.php
http://indiemediamagazine.com/php/PEAR/Installer.php
http://indiemediamagazine.com/php/test.php

Can anyone help with these problems? Thanks,
Rrotz

Jason
07-18-2003, 12:16 AM
just giving the URL only shows the errors, that doesn't let us see the code, supply the code so we can see what the errors correspond to, Common.php on line 23 means nothing since I don't know what Common.php looks like and line 23 has some error....


Jason

Rrotz
07-18-2003, 12:31 AM
Peartest Error:

<?
require_once("DB.php");
require_once "PEAR.php";
echo ("<h3>Swoobadoo</h3>");
?>

Rrotz
07-18-2003, 12:32 AM
test.php error:

<?php // Optional pear_dir variable, allows you to choose where your PEAR
//install is, in case its not found

$pear_dir = "/home/indieme/www/php";
$info = new PEAR_Info($php_dir);

$info->show();?>

Rrotz
07-18-2003, 12:34 AM
installer.php error:
(see attached txt file)

Thank you for helping.

Jason
07-18-2003, 12:40 AM
that file said php source...are you trying to install PHP from source? just a quick question...

Jason

Rrotz
07-18-2003, 12:42 AM
Sorry, I'm a total newb to PHP but I'm trying to install a script called TIKI WIKI. I will refer my admin to this thread, maybe he can shed more light on it with other programmer peers.

THANK YOU FOR YOUR HELP!

Jason
07-18-2003, 12:53 AM
you are trying to do content manegment? I think putting this in a PHP thread might not have been the wisest choice, though the errors are from there. But if you are doing CMF stuff, I would suggest you try to do ZOPE and CMF and Plone. They might be good for you. Better then this TIKI WIKI thing Ive never heard of...


Jason

AmericanD
07-18-2003, 01:25 AM
Originally posted by Jason
you are trying to do content manegment? I think putting this in a PHP thread might not have been the wisest choice, though the errors are from there. But if you are doing CMF stuff, I would suggest you try to do ZOPE and CMF and Plone. They might be good for you. Better then this TIKI WIKI thing Ive never heard of...


Jason

Yes we'r trying to do content management script basically for a news based site. with articles/forum etc

Tikiwiki has been having its own problems of late. I also have some other scripts in mind, mainly cafelog.com , nucleus.com , or vbulletin portal (vbindex) based on their forum software .

Plone looks good too, i'll check it out shortly

thanks

firepages
07-18-2003, 02:25 AM
If you only need the PEAR::DB then just extract pear.php and DB.php from the PEAR archive

stick them somewhere easy to find and call
require_once($path_to.'DB.php');

DB.php should reference PEAR.php internally
if you get an error about not finding PEAR.php , then before you call DB.php add this ..


<?
$sep = ':' ; /*(unix) change to ';' on win32*/
ini_set( "include_path" , ini_get( "include_path" ) . $sep . '/path/to/pear' ) ;
require_once( 'DB.php' ) ;
?>


that or ask your host to install PEAR , its now an official part of PHP so they have no reason to grumble.

Rrotz
07-18-2003, 03:14 AM
Originally posted by firepages
If you only need the PEAR::DB then just extract pear.php and DB.php from the PEAR archive

stick them somewhere easy to find and call
require_once($path_to.'DB.php');

DB.php should reference PEAR.php internally
if you get an error about not finding PEAR.php , then before you call DB.php add this ..


<?
$sep = ':' ; /*(unix) change to ';' on win32*/
ini_set( "include_path" , ini_get( "include_path" ) . $sep . '/path/to/pear' ) ;
require_once( 'DB.php' ) ;
?>


that or ask your host to install PEAR , its now an official part of PHP so they have no reason to grumble.

Thank you Firepages, I have made that request from my Domain Hosting Company. I will keep this thread updated. :)

AWESOME FORUM!

AmericanD
07-18-2003, 03:16 AM
well the host where indiemedia is hosted does show -with pear inside the phpinfo page but i wonder why its not working?

maybe DB is missing ?