GetDotted Domains

Viewing Thread:
"Urgent: PEAR and Freeola problems."

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.

Sun 18/02/07 at 09:44
Regular
Posts: 2
I'm having problems getting PEAR with PHP to work on Freeola.

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
Sun 18/02/07 at 13:24
Regular
Posts: 2
For those interested in this thread, here's the answer I have from the support guys:

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.
Sun 18/02/07 at 09:44
Regular
Posts: 2
I'm having problems getting PEAR with PHP to work on Freeola.

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

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Unrivalled services
Freeola has to be one of, if not the best, ISP around as the services they offer seem unrivalled.
I've been with Freeola for 14 years...
I've been with Freeola for 14 years now, and in that time you have proven time and time again to be a top-ranking internet service provider and unbeatable hosting service. Thank you.
Anthony

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.