| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Senior Member | 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) |
| NPQ's PA, Slave, and On Call Coder Technical Services | http://www.evolt.org/article/rating/17/60384/index.html <This could possibly give you a little Insight
__________________ |
| |
| | #5 (permalink) | |
| Senior Member | Quote:
| |
| |
| | #7 (permalink) | |
| Senior Member | A question, When I am trying to access admin area it is giving me following error, Quote:
| |
| |
| | #8 (permalink) |
| NamePros Regular | 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 |
| |
| | #9 (permalink) | |
| Senior Member | Quote:
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 | 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 |
| |
| | #11 (permalink) |
| Senior Member | 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 | 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 08: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 09:49 AM |
| Password Problem | Wildchild22 | Programming | 3 | 06-28-2005 02:08 AM |
| password protection | hargi22 | Programming | 4 | 06-10-2005 12:39 PM |
| Windows XP Password Problem | Martin Crepaz | The Break Room | 3 | 03-12-2005 07:25 PM |
| help, help, help with phpBB installation | seraph | Programming | 2 | 10-05-2003 09:05 PM |