PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 8th, 2004, 03:41 AM
LeXonRin LeXonRin is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 10 LeXonRin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Security of php code

Can php scripting be used for a username and password security site and how secure is it if you can??

Sry if this is random because i am really noob at it but plz help

LeX

Reply With Quote
  #2  
Old June 8th, 2004, 07:03 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Sure, PHP can be used for such a thing. It's as secure as you code it. You can write insecure code in any language.
__________________
Please don't PM me asking for solutions outside the scope of a thread.
Keeping all responses in a thread stands to help others who come along later,
which is after all what this forum's all about.

Reply With Quote
  #3  
Old June 8th, 2004, 10:14 AM
Pheifel Pheifel is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Denmark
Posts: 174 Pheifel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 46 sec
Reputation Power: 5
Send a message via MSN to Pheifel
there is an implimented md5 coding in PHP through the md5() function. But you can write a lot of different security stuff into the login / logout

Reply With Quote
  #4  
Old June 15th, 2004, 10:31 PM
KonaBreath KonaBreath is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 4 KonaBreath User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It really just depends on what you mean by secure.

What needs to be secured?


Is it the information in the database?
-- if so, use md5 to create and store a hash
Is it the network connection?
-- if so use a SSL secure connection
Is it the PHP file itself?
-- if so, use the Zend encoder to encode the php file.

A very simple implementation of a login system (with only 1 username/password) would just
have a form with username and password that submits to a
page called process_login.php which has the following code

if($_POST['UserName']=="admin" && $_POST['Password']=="MyPassword"){
header("Location: /main_admin.php");
}else{
header("Location: /login.php");
}

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Security of php code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT