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! Link to comment https://forums.phpfreaks.com/topic/100063-pear-in-php5/ 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? Link to comment https://forums.phpfreaks.com/topic/100063-pear-in-php5/#findComment-511635 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.. Link to comment https://forums.phpfreaks.com/topic/100063-pear-in-php5/#findComment-511654 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(); ?> Link to comment https://forums.phpfreaks.com/topic/100063-pear-in-php5/#findComment-511657 Share on other sites More sharing options...
trq Posted April 8, 2008 Share Posted April 8, 2008 Is DB.php in C:\php5\pear ? Link to comment https://forums.phpfreaks.com/topic/100063-pear-in-php5/#findComment-511659 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. Link to comment https://forums.phpfreaks.com/topic/100063-pear-in-php5/#findComment-511666 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? Link to comment https://forums.phpfreaks.com/topic/100063-pear-in-php5/#findComment-511684 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.