|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
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
|
|
#4
|
|||
|
|||
|
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"); } |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Security of php code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|