kevin7 Posted April 8, 2008 Share Posted April 8, 2008 hey, I have installed it from appserv/php5/go-pear so, i try it out with the DB.php, but it displays message "no such file". did i overlook something important during the installation? do i need to install db.php from internet? if so, how can i do that?\ thanks! Quote Link to comment Share on other sites More sharing options...
trq Posted April 8, 2008 Share Posted April 8, 2008 Can we see some code and your exact error message? Are you sure you have the path to the pear libs in your include_path? Quote Link to comment Share on other sites More sharing options...
kevin7 Posted April 8, 2008 Author Share Posted April 8, 2008 Warning: include_once(DB.php) [function.include-once]: failed to open stream: No such file or directory in C:\AppServ\www\PEAR\test.php on line 3 Warning: include_once() [function.include]: Failed opening 'DB.php' for inclusion (include_path='.;C:\php5\pear') in C:\AppServ\www\PEAR\test.php on line 3 Fatal error: Class 'DB' not found in C:\AppServ\www\PEAR\test.php on line 6 where can i find the include_path? when i start install the pear, it asked me to install it either system or local, i choose system.. Quote Link to comment Share on other sites More sharing options...
trq Posted April 8, 2008 Share Posted April 8, 2008 where can i find the include_path? <?php echo get_include_path(); ?> Quote Link to comment Share on other sites More sharing options...
trq Posted April 8, 2008 Share Posted April 8, 2008 Is DB.php in C:\php5\pear ? Quote Link to comment Share on other sites More sharing options...
kevin7 Posted April 8, 2008 Author Share Posted April 8, 2008 i hv tried the include_path, it displays .;c:\php5\pear\ but my php5 folder is in c:\appserv\php5 how do i change it.. and nope, there isnt a file called DB.php in Pear folder C:\appserv\php5\pear\ c:\php5\pear doesnt exist by the way. Quote Link to comment Share on other sites More sharing options...
kevin7 Posted April 8, 2008 Author Share Posted April 8, 2008 i hv restarted the apache server, now the include_path is correct, but it still displays the same error message? is it due to the new version of pear, it changed the DB.php's name? 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.