Page 1 of 1

Php.ini error

Posted: Sat Sep 08, 2007 8:55 am
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

Posted: Sat Sep 08, 2007 9:00 am
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.