I am that geek who is working in the programming field, in love with poetry, always appreciate good lyrics and addicted to loud music.
[PHP 5 + XML]: XML Login
A simple tutorial to show how PHP and XML can be use to store user info. For this tutorial, the main purpose is performing login action.
We begin by creating the xml file: (filename: login.xml)
-
-
<?xml version="1.0" encoding="ISO-8859-1"?>
-
-
<users>
-
-
<username>SHiDi</username>
-
<password>c822c1b63853ed273b89687ac505f9fa</password>
-
<fullname>Mohd Rashidi Bin Mohd Zin</fullname>
-
<active>1</active>
-
-
<username>John</username>
-
<password>0659c7992e268962384eb17fafe88364</password>
-
<fullname>John Doe III</fullname>
-
<active>0</active>
-
-
</users>
-
As you can see, this file stores all users information. Password stored are hashed with md5.



