zanderzzz Posted October 23, 2008 Share Posted October 23, 2008 Here's the error Warning: main(classes/database/db.php) [function.main]: failed to open stream: No such file or directory in /home/site/public_html/site.com/file/include/include.php on line 20 Warning: main() [function.include]: Failed opening 'classes/database/db.php' for inclusion (include_path='/usr/lib/php:.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/site/public_html/site.com/file/include/include.php on line 20 this is what's on line 20 in my include.php include_once("classes/database/db.php"); // for PEAR DB I'm stumped .. let me know. Quote Link to comment Share on other sites More sharing options...
trq Posted October 23, 2008 Share Posted October 23, 2008 pear isn't anywhere to be seen on your include_path. How was it installed and where is it? Quote Link to comment Share on other sites More sharing options...
timmah1 Posted October 23, 2008 Share Posted October 23, 2008 Do you have directories classes/database/db.php? It's telling you it can't find the db Quote Link to comment Share on other sites More sharing options...
zanderzzz Posted October 23, 2008 Author Share Posted October 23, 2008 Ok I added a dh.php into my /database folder.... here's the new error In /public_html/site.com/file/classes/database I added db.php Now I have a different error Warning: main(DB.php) [function.main]: failed to open stream: No such file or directory in /home/box/public_html/site.com/file/classes/database/db.php on line 3 here's my db.php first few lines ?php // most pages need the database require_once("DB.php"); Quote Link to comment Share on other sites More sharing options...
zanderzzz Posted October 23, 2008 Author Share Posted October 23, 2008 ok I got this PEAR thing installed Starting to download PEAR-1.7.2.tgz .... install ok: channel://pear.php.net/Archive_Tar-1.3.2 install ok: channel://pear.php.net/Structures_Graph-1.0.2 install ok: channel://pear.php.net/Console_Getopt-1.2.3 install ok: channel://pear.php.net/XML_RPC-1.5.1 install ok: channel://pear.php.net/PEAR-1.7.2 ..... Now what? I'm still getting that same error. Quote Link to comment Share on other sites More sharing options...
zanderzzz Posted October 23, 2008 Author Share Posted October 23, 2008 Here's more info... ownloading PEAR-1.7.2.tgz ... Starting to download PEAR-1.7.2.tgz (302,744 bytes) ................done: 302,744 bytes install ok: channel://pear.php.net/PEAR-1.7.2 PEAR: Optional feature webinstaller available (PEAR's web-based installer) PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer) PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer) PEAR: To install optional features use "pear install pear/PEAR#featurename" /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin Quote Link to comment Share on other sites More sharing options...
zanderzzz Posted October 23, 2008 Author Share Posted October 23, 2008 I see this... Location of Your PHP Extension(s) and Application(s) Path: /home/myaccount/php/PEAR I also see. /home/myaccount/php/DB Hello? Quote Link to comment Share on other sites More sharing options...
revraz Posted October 23, 2008 Share Posted October 23, 2008 Hello what? Restate the current problem. Quote Link to comment Share on other sites More sharing options...
zanderzzz Posted October 23, 2008 Author Share Posted October 23, 2008 Hello what? Restate the current problem. Fatal error: Undefined class name 'db' in /home/account/public_html/site.com/dile/classes/database/db.php on line 19 Quote Link to comment Share on other sites More sharing options...
trq Posted October 23, 2008 Share Posted October 23, 2008 Where did you install pear too? You need to put this location within your include_path directive in your php.ini. Quote Link to comment Share on other sites More sharing options...
zanderzzz Posted October 23, 2008 Author Share Posted October 23, 2008 Where did you install pear too? You need to put this location within your include_path directive in your php.ini. How do I find that out? I just have access to cpanel. Quote Link to comment Share on other sites More sharing options...
zanderzzz Posted October 23, 2008 Author Share Posted October 23, 2008 Where did you install pear too? You need to put this location within your include_path directive in your php.ini. FOUND IT... Configuration File (php.ini) Path /usr/local/php4/lib/php.ini now what? 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.