5, September 2008

Cannot get the login page to work - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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 1028 times)
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« on: Jul 13, 2006, 04: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: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Jul 13, 2006, 09:29:02 AM »

do you changes the code?

try the files first like provided and descripbed inside the manual


Last blog : Is your website is down? Know before your visitors do!
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #2 on: Jul 13, 2006, 03: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: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Jul 13, 2006, 06: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...


Last blog : Is your website is down? Know before your visitors do!
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


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

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

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


It's time to use PHP5!


« Reply #5 on: Jul 13, 2006, 08:12:19 PM »

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


and what is the include command in you login page?


Last blog : Is your website is down? Know before your visitors do!
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3259
Tags : directories Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Sep 05, 2008, 08:41:58 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!


Forum Statistics
Total Posts: 36.294
Total Topics: 7.477
Total Members: 3.899
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: speedy5044

29 Guests, 3 Users online :

14 users online today:



Readers

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