Topic: register.php is not within the allowed paths (Read 1516 times)
Global Moderator
Internet Junkie
Gender:
Posts: 1807
9006 credits Members referred : 6
« on: Sep 13, 2006, 08:54:23 pm »
Olaf, I've got your access user class working, well the examples at least. I've put everything in the /access folder and updated all files, replacing /classes/access_user with /access. The samples in the /access folder all work, but now I want to add it to my index.php in the root. I've added an include("/access/register.php") in my index.php and removed the head and body tags from register.php I'm getting following error in my index.php:
Warning: main() [function.main]: open_basedir restriction in effect. File(/access/register.php) is not within the allowed path(s): (/home:/tmp:/usr) in index.php
Global Moderator
Internet Junkie
Gender:
Posts: 1807
9006 credits Members referred : 6
« Reply #1 on: Sep 13, 2006, 08:59:27 pm »
copied the register.php to the root of the site and it seems to be working now (except for some "headers already sent" errors, but I think I can handle those!)
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #2 on: Sep 13, 2006, 09:56:26 pm »
Quote
Warning: main() [function.main]: open_basedir restriction in effect. File(/access/register.php) is not within the allowed path(s): (/home:/tmp:/usr) in index.php
I think you webhost is very limited...
the only thing you need to change while moving the files are these settings: