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:
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:
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:
Posts: 6691
34714 credits Members referred : 374