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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.