The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
These are the error messages that I'm getting:
Warning: main(DB.php): failed to open stream: No such file or directory in
Fatal error: main(): Failed opening required 'DB.php' (include_path='.:/usr/local/share/pear') in
From these, I am assuming that Pear is there in the include path and therefore DB.php (part of PEAR) should be present in the .:/usr/local/share/pear directory. Is that a correct assumption?
The code I'm using to access this is:
//require the PEAR::DB classes.
require_once 'DB.php';
DO I need to change this at all to get it to work?
Any help most gratefully received. I'm on a very tight study deadline to get this to work.
Thanks,
AMCW
I am not familiar with usage of PEAR, but I have had quick look in the /usr/local/share/pear directory and cannot see DB.php. As it appears to be a library of functions written in PHP I suspect that you will have to place the file within your own webspace and reference this with the include function eg require_once (/freeola/users/5/4/sr0512145/htdocs/DB.php) (substituting your sr number for the one in the example and replace /5/4 with the last digit of your sr number and the second last digit of the sr number.
I think this has done the trick, I'm just having problems proving it because my php pages won't load for some reason. No error message now though.
These are the error messages that I'm getting:
Warning: main(DB.php): failed to open stream: No such file or directory in
Fatal error: main(): Failed opening required 'DB.php' (include_path='.:/usr/local/share/pear') in
From these, I am assuming that Pear is there in the include path and therefore DB.php (part of PEAR) should be present in the .:/usr/local/share/pear directory. Is that a correct assumption?
The code I'm using to access this is:
//require the PEAR::DB classes.
require_once 'DB.php';
DO I need to change this at all to get it to work?
Any help most gratefully received. I'm on a very tight study deadline to get this to work.
Thanks,
AMCW