28, May 2012

Cannot get the login page to work - 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: Cannot get the login page to work
« previous next »
Pages: [1] Print

Author Topic: Cannot get the login page to work  (Read 1929 times)
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« on: Jul 13, 2006, 03:39:33 am »

Hello...

I get this:

/home/ritu/public_html
Warning: Cannot modify header information - headers already sent by (output started at /home/ritu/public_html/login.php:4) in /home/ritu/public_html/classes/access_user/access_user_class.php on line 148

Warning: Cannot modify header information - headers already sent by (output started at /home/ritu/public_html/login.php:4) in /home/ritu/public_html/classes/access_user/access_user_class.php on line 114


Any idea ??
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Jul 13, 2006, 08:29:02 am »

do you changes the code?

try the files first like provided and descripbed inside the manual

I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #2 on: Jul 13, 2006, 02:23:28 pm »

I did not modify any code, just echoed $error

Well I think my problem is with the path.

Because after I login, I get "Page cannot be found" but if I browse to example.php, I get welcome "user name"

Your code in dbconfig:


define("CLASS_PATH", dirname($_SERVER['PHP_SELF'])."/"); // the location where the class is executed

$sec_path = "/classes/access_user/"; // a second location where the scripts should be

define("APPLICATION_PATH", $sec_path);


Now CLASS_PATH is the root, but in the documentation you ask to put the path in:

root\classes\access_user

Here you have Class_Path & Application_Path reversed.

my folder structure is:

root/ - all the files except the class & db_config.

then root/classes/access_user - I have acces_user_class & db_config

- Let me know if i'm doing anything wrong here...

Thanks

-
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Jul 13, 2006, 05:47:51 pm »

If you use the class in this folder structure than it will work:

root/classes/acces_user/

it's not a problem to place login, register or other files into other directories if you inlcude the class file from the prev. location.

you're right this is a problem about pathes, these pathes have to match your own situation...

I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #4 on: Jul 13, 2006, 06:01:06 pm »

and this is the exact path that I have too....

Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Jul 13, 2006, 07:12:19 pm »

and this is the exact path that I have too....


and what is the include command in you login page?

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3259
Tags : directories 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: Cannot get the login page to work
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 12:09:18 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.