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: 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 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 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 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 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 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 Share on other sites More sharing options...
dewey_witt Posted November 29, 2007 Author Share Posted November 29, 2007 The error I received. Fatal error: Class 'PEAR' not found in C:\webs\test\test pear.php on line 4 Quote Link to comment 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 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 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 Share on other sites More sharing options...
dewey_witt Posted November 29, 2007 Author Share Posted November 29, 2007 Whole new error now. Fatal error: Class 'DB' not found in C:\webs\test\test pear.php on line 12 Quote Link to comment 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 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 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 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.