Hi
I've been looking for a solution to this problem but only found similar problems and no solution (certainly not one I understand as a solution anyway!!)
This script I'm running is in the dir called admin. and the line is a simple - include "/inc/connectdb.php"
This is my error message:
open_basedir restriction in effect. File is in wrong directory in /path_to_base_dir/admin/inc/connectdb.php
open_basedir from phpinfo() is set exactly as path in the error message.
"safe mode" is set to on but I am trying to run a script within my "bit" of the server - why can't I
any suggestions welcome
Chris
open_basedir restriction in effect - I'm confused!
Moderators: egami, macek, gesf
-
- New php-forum User
- Posts: 19
- Joined: Sun Aug 18, 2002 4:02 am
- Location: Germany
There's no such thing as a stupid question - but I try!!
-
- New php-forum User
- Posts: 19
- Joined: Sun Aug 18, 2002 4:02 am
- Location: Germany
Thanks for the responce - at least there is some comfort in knowing I'm not alone!!!
If the CGI root is the only way I'll have to start at the beginning 'cos I ain't got a clue!!!
I do know however that I don't have .htaccess access!!!
If the CGI root is the only way I'll have to start at the beginning 'cos I ain't got a clue!!!
I do know however that I don't have .htaccess access!!!
There's no such thing as a stupid question - but I try!!
-
- New php-forum User
- Posts: 19
- Joined: Sun Aug 18, 2002 4:02 am
- Location: Germany
Hi pecoes
well I just came up with this - not my solution unfortunately - I don't understand why but it did make the difference!!!! I'm tempted to think my ISP who I'd also written to has fixed something.
Let me know if it works
"Are those includes outside of your www-site? If not, then this should work:
include($_SERVER['DOCUMENT_ROOT'].'/your/local/root/file.php');
well I just came up with this - not my solution unfortunately - I don't understand why but it did make the difference!!!! I'm tempted to think my ISP who I'd also written to has fixed something.
Let me know if it works
"Are those includes outside of your www-site? If not, then this should work:
include($_SERVER['DOCUMENT_ROOT'].'/your/local/root/file.php');
There's no such thing as a stupid question - but I try!!