dewey_witt Posted November 29, 2007 Share Posted November 29, 2007 OK so i ran the go-pear.bat file set up local etc.....And it just wont do it....... when i go to test the instalation its giving me the error: Quote Fatal error: Class 'PEAR' not found in C:\webs\test\test pear.php on line 4 Any help in the mater will be gratly appriciated Thanx Quote Link to comment https://forums.phpfreaks.com/topic/79369-installing-pear-on-xp-woos/ Share on other sites More sharing options...
dewey_witt Posted November 29, 2007 Author Share Posted November 29, 2007 OK I wasnt clear before...... the pear seemed to set up fine... yet I still get the above error...... am I in the wrong place for this? Quote Link to comment https://forums.phpfreaks.com/topic/79369-installing-pear-on-xp-woos/#findComment-401813 Share on other sites More sharing options...
dewey_witt Posted November 29, 2007 Author Share Posted November 29, 2007 Noone can help still huh? Quote Link to comment https://forums.phpfreaks.com/topic/79369-installing-pear-on-xp-woos/#findComment-402016 Share on other sites More sharing options...
trq Posted November 29, 2007 Share Posted November 29, 2007 There is no class called PEAR within pear. Quote Link to comment https://forums.phpfreaks.com/topic/79369-installing-pear-on-xp-woos/#findComment-402018 Share on other sites More sharing options...
dewey_witt Posted November 29, 2007 Author Share Posted November 29, 2007 OK so look I installed right I used this as a test script <?php require_once 'DB.php'; PEAR::setErrorHandling(PEAR_ERROR_DIE); $db_host = 'localhost'; $db_user = 'root'; $db_pass = 'password'; $db_name = 'dataBase_name'; $dsn = "mysql://$db_user:$db_pass@unix+$db_host/$db_name"; $db = DB::connect($dsn); $db->setFetchMode(DB_FETCHMODE_OBJECT); ?> Quote Link to comment https://forums.phpfreaks.com/topic/79369-installing-pear-on-xp-woos/#findComment-402024 Share on other sites More sharing options...
trq Posted November 29, 2007 Share Posted November 29, 2007 And, the results are? Quote Link to comment https://forums.phpfreaks.com/topic/79369-installing-pear-on-xp-woos/#findComment-402026 Share on other sites More sharing options...
dewey_witt Posted November 29, 2007 Author Share Posted November 29, 2007 The error I received. Quote Fatal error: Class 'PEAR' not found in C:\webs\test\test pear.php on line 4 Quote Link to comment https://forums.phpfreaks.com/topic/79369-installing-pear-on-xp-woos/#findComment-402032 Share on other sites More sharing options...
trq Posted November 29, 2007 Share Posted November 29, 2007 What does.... <?php echo get_include_path(); ?> produce? Quote Link to comment https://forums.phpfreaks.com/topic/79369-installing-pear-on-xp-woos/#findComment-402033 Share on other sites More sharing options...
dewey_witt Posted November 29, 2007 Author Share Posted November 29, 2007 .;c:\PHP\includes;C:\PHP\PEAR Quote Link to comment https://forums.phpfreaks.com/topic/79369-installing-pear-on-xp-woos/#findComment-402036 Share on other sites More sharing options...
trq Posted November 29, 2007 Share Posted November 29, 2007 You don't include the pear file. <?php require_once 'PEAR.php'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/79369-installing-pear-on-xp-woos/#findComment-402037 Share on other sites More sharing options...
dewey_witt Posted November 29, 2007 Author Share Posted November 29, 2007 Whole new error now. Quote Fatal error: Class 'DB' not found in C:\webs\test\test pear.php on line 12 Quote Link to comment https://forums.phpfreaks.com/topic/79369-installing-pear-on-xp-woos/#findComment-402042 Share on other sites More sharing options...
trq Posted November 29, 2007 Share Posted November 29, 2007 Sorry, Ive never used pear. Is there a file called PEAR in C:\PHP\PEAR? Does it contain a class called PEAR? Quote Link to comment https://forums.phpfreaks.com/topic/79369-installing-pear-on-xp-woos/#findComment-402045 Share on other sites More sharing options...
dewey_witt Posted November 29, 2007 Author Share Posted November 29, 2007 Well yeah theres a folder there.... but pear is a big extention...... I dunno Im tryna figure it out. Quote Link to comment https://forums.phpfreaks.com/topic/79369-installing-pear-on-xp-woos/#findComment-402047 Share on other sites More sharing options...
trq Posted November 29, 2007 Share Posted November 29, 2007 Pear is not an extension. Quote Link to comment https://forums.phpfreaks.com/topic/79369-installing-pear-on-xp-woos/#findComment-402050 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.