script problems

Status
Not open for further replies.

beast073

New Member
Messages
4
Reaction score
0
Points
0
I'm having problems using a login script that uses the code

require_once('db.php')

I think this is supposed to be a preloaded script on the server( the pear::DB)

The error message told me to include this path:

/x10hosting/php2/lib/php

so i typed in

require_once( '/x10hosting/php2/lib/php/db.php' )

which didn't do anything different.

am i doing something wrong?
 

DJHolliday

New Member
Messages
38
Reaction score
0
Points
0
That path is most likely outside your access rights.
x10hosting needs to install pear::DB and include the path to the file into the include_path
Maybe the reason is the whole redirect and work on the servers and the situation is back to normal soon.
Did it ever work before?
 

sonicsshadow

Member
Messages
200
Reaction score
0
Points
16
I've had the same problems, but fixed it.
Try require_once($_SERVER['DOCUMENT_ROOT'] ."db.php");
Note, you will have to put /whatever folder "db.php" is in. so if it's in /pearl it would be:
require_once($_SERVER['DOCUMENT_ROOT'] ."/pearl/db.php");
Hope that helps :D.
 

beast073

New Member
Messages
4
Reaction score
0
Points
0
It's probably because of the migration x10hosting is working on, but I think I found a db.php script online that will work. I'm about to try it out.

and no this is a new php script I am trying out.
 
Last edited:

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Hello,

It seems your problem has been solved, if you have any more questions then feel free to ask them.
 
Status
Not open for further replies.
Top