Current location: Hot Scripts Forums » Programming Languages » PHP » question about simple login system


question about simple login system

Reply
  #1 (permalink)  
Old 02-22-04, 09:27 PM
magsec4 magsec4 is offline
New Member
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
question about simple login system

hi, I was wondering if theres a way to make a simple login script, without using a database, just flat files. I was wondering if things like username, password and email could be stored in .txt files like username.txt or something and the login script could read from that.

Thankyou for your help, and if at all possible maybe show me the coding needed to read from a .txt file and actually use like the username and password to login.

Thankyou again,
Dan
Reply With Quote
  #2 (permalink)  
Old 02-22-04, 10:31 PM
Submerge Submerge is offline
New Member
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ahhh. I'm not sure but I am pretty new at PHP programming. I know counters read and write to text files. you cxould look into that. anyone else hve an answere?
Reply With Quote
  #3 (permalink)  
Old 02-22-04, 10:34 PM
Infinite_Hackers's Avatar
Infinite_Hackers Infinite_Hackers is offline
Coding Addict
 
Join Date: Dec 2003
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
ahh, you can make a login system...it's just not 100% safe :S very unsafe actually...

the way is by simply writing to a file and seperating them, so then you can select the line or w/e fromt he file, and check if the password is right... now..i don't think you would ever wanna do something like it, it's really unsafe... :S ( you could crypt it.. but still )
Reply With Quote
  #4 (permalink)  
Old 02-22-04, 11:57 PM
nd2 nd2 is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
it's only unsafe if it's not set up correctly, as long as you keep the password file out of your main document root on your server and you have anoumouse ftp access turned off and you have a nice long criptic password protecting your ftp server it should be just as safe as a database.
__________________
IonCMS (Coming Soon.)
http://ioncms.com
--
Ncaster (Free php/mysql cms)
http://ncaster.cjb.net
Reply With Quote
  #5 (permalink)  
Old 02-23-04, 12:03 AM
magsec4 magsec4 is offline
New Member
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
um... yeah so anyways, if i did want to do it at the risk of it being unsafe, can any1 plz post how to actually do this pleas?
Reply With Quote
  #6 (permalink)  
Old 02-23-04, 03:35 AM
IWeb IWeb is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
another way would be with .htaccess, then write a PHP login function that queries the htaccess/htpwd files.
__________________
- PowerPPS PPS/PPC script
- Earn money
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Art Nexus seeking PHP programmers TheArtNexus Job Offers & Assistance 5 02-26-08 03:08 AM
Need Epinions-lite system in PHP & MYSQL wali001 Job Offers & Assistance 4 01-12-04 06:02 AM
Link system TAK PHP 3 08-17-03 11:17 AM
simple question? Renée PHP 5 08-07-03 12:54 PM
Good template system [PL]Greg PHP 3 06-28-03 04:09 AM


All times are GMT -5. The time now is 09:04 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.