Jump to content

PHP error.. how can I fix this?


zanderzzz

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/129678-php-error-how-can-i-fix-this/
Share on other sites

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");

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.