Php.ini error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thefreebielife
Forum Contributor
Posts: 126
Joined: Thu Apr 26, 2007 2:59 pm

Php.ini error

Post by thefreebielife »

Okay, I am running a script that i bought, but their support is very slow, so i thought i would ask here.

This is the error i get:

Warning: main(DB.php) [function.main]: failed to open stream: No such file or directory in /home/anyfreer/public_html/includes/common.inc.php on line 11

Fatal error: main() [function.require]: Failed opening required 'DB.php' (include_path='.:/usr/local/lib/php:/usr/bin/pear') in /home/anyfreer/public_html/includes/common.inc.php on line 11
This is my php.ini file:

Code: Select all

output_buffering = On
zend_extension = /home/anyfreer/ioncube/ioncube_loader_lin_5.1.so
memory_limit = 100M
include_path=.:/usr/local/lib/php:/usr/bin/pear
And this is where my host said PHP and PEAR were:
The path to php is: /usr/bin/php and pear is /usr/bin/pear
Do i not have it set up right?

Thanks for any help, this is a big issue right now.

Jared
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Have you tried the absolute path just to make sure the file is there?

Code: Select all

require '/usr/bin/pear/DB.php';
/usr/bin/pear? Sounds to me as if this is the pear cmd file as in

Code: Select all

/usr/bin/pear upgrade --force PEAR-1.3.6 Archive_Tar-1.3.1 Console_Getopt-1.2
, not a directory.
Post Reply