| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: May 2003 Location: Ohio
Posts: 2,337
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Username & Password Protected Hello all, I was wondering is there a script/way to make a certain page which can be only accessed by a username and password. I would like to make more than one username and password so please let me know if this is possible. Thank you. |
| |
| | #4 (permalink) |
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | http://www.evolt.org/article/rating/17/60384/index.html <This could possibly give you a little Insight |
| |
| | THREAD STARTER #5 (permalink) | ||||
| Senior Member Join Date: May 2003 Location: Ohio
Posts: 2,337
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| ||||
| |
| | THREAD STARTER #7 (permalink) | ||||
| Senior Member Join Date: May 2003 Location: Ohio
Posts: 2,337
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | A question, When I am trying to access admin area it is giving me following error,
| ||||
| |
| | #8 (permalink) |
| NamePros Regular Join Date: Feb 2004 Location: Student @ UConn
Posts: 411
![]() ![]() | In that page, in constants.php, you need to make some changes to that file, especially the following: define("DB_USER", "your_name"); define("DB_PASS", "your_pass"); define("DB_NAME", "your_dbname"); Replace your_name with your database username, your_pass with your database password, and your_dbname with the name of your database. Check the rest of that file, there might be some other things you need to change as well. Joe
__________________ Joe |
| |
| | THREAD STARTER #9 (permalink) | ||||
| Senior Member Join Date: May 2003 Location: Ohio
Posts: 2,337
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I have already done that and like I have said I can login and everything just can't access the admin area. | ||||
| |
| | #10 (permalink) |
| NamePros Regular Join Date: Feb 2004 Location: Student @ UConn
Posts: 411
![]() ![]() | Well the problem is with line 24 in database.php, which is the following: PHP Code: Contact me on AIM/Yahoo and ill see what I can do, Ill be on for another 20 minutes, otherwise I will be on tomorrow morning Joe
__________________ Joe |
| |
| | #11 (permalink) |
| Senior Member Join Date: Jun 2005 Location: North Dakota
Posts: 1,378
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Also, just incase you can't figure this out, I have provided another wonderful script...Its very easy to use. Step by step guide.. Tutorial Here |
| |
| | #12 (permalink) |
| NamePros Member Join Date: Jun 2005 Location: Toronto, ON
Posts: 175
![]() | Hey bud, try this code. its 100% free to use, as long as you cite it. I named this file private.php, you can change the name of this file, to watever you want, but then YOU MIGHT have to modify this script.. Put this part of the script in the code before <HTML>, means very begining of the page.. PHP Code: The code below goes anywhere on the page, for instance <BODY>; PHP Code: PS- this is NOT the best way to secure your page.. use .htaccess on your Apache server If u have one, that's what I use..
Last edited by Umer; 07-01-2005 at 09:47 PM.
|
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| change your yahoo mail password through gmail. | suthra | The Break Room | 4 | 07-02-2005 10:49 AM |
| Password Problem | Wildchild22 | Programming | 3 | 06-28-2005 03:08 AM |
| password protection | hargi22 | Programming | 4 | 06-10-2005 01:39 PM |
| Windows XP Password Problem | Martin Crepaz | The Break Room | 3 | 03-12-2005 08:25 PM |
| help, help, help with phpBB installation | seraph | Programming | 2 | 10-05-2003 10:05 PM |