28, May 2012

register.php is not within the allowed paths - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: register.php is not within the allowed paths
« previous next »
Pages: [1] Print

Author Topic: register.php is not within the allowed paths  (Read 1515 times)
Global Moderator
Internet Junkie
*****
Gender: Male
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

probably just a small thing I've missed  Embarrassed


Last blog : Are You Stumbling Yet?
Global Moderator
Internet Junkie
*****
Gender: Male
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!)


Last blog : Are You Stumbling Yet?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
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:

Code:
<?php
define
("LOGIN_PAGE"CLASS_PATH."login.php");
define("START_PAGE""/classes/access_user/example.php");
define("ACTIVE_PASS_PAGE"APPLICATION_PATH."activate_password.php");
define("DENY_ACCESS_PAGE"APPLICATION_PATH."deny_access.php");
define("ADMIN_PAGE"APPLICATION_PATH."admin_user.php");

by the way your main page should be the login page not the register page (but this is up to you)

Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #3 on: Sep 13, 2006, 10:31:22 pm »

I was just testing it, the main page will have a login and register link on the page. Thanks!


Last blog : Are You Stumbling Yet?
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4085
Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: register.php is not within the allowed paths
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 04:28:02 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.