Jul 26, 2008

Flatfile User Login/signup - Uses text files only (compatable with forums and message system)

Free Web Hosting, No Ads > CONTRIBUTE > Tutorials
Pages: 1, 2, 3

free web hosting

Flatfile User Login/signup - Uses text files only (compatable with forums and message system)

Tsunami
With this tutorial, you will learn how to create a textfile login script. This user membership script is for use also with my forums and message system scripts. I will also give you the scripts to make it so that people can change their profiles.

Ok, The first thing we need to do is make the database. To do this, create a blank text file called 'userdata.txt', make sure it is ALL LOWER-CASE. Edit this file and put '**username|##|password|##|email|##|rank|##|userid|##|name|##|picture**'. This will not be used, however it will give you an idea of how the information is organized. do not put a return at the end of the line. now save that file. remember, it should be called 'userdata.txt'. CHMOD THIS FILE TO 777

Now we need to make the sign up form. Create a blank html or php file called 'signup.html' or 'signup.php'. It needs to contain the following code:
CODE

<form action="register.php" method="POST">
<center>
<table width="200" align="center">
<tr><td>Desired Username:</td>
<td><input type="text" name="username" width=100></td></tr>
<tr><td>Email: </td>
<td><input type="text" name="email" width="100:"></td></tr>
<tr><td>Repeat Email:</td><td><input type="text" name="email2" width="100%"></td></tr> <tr><td>Password: </td><td><input type="password" name="pass" width="100"></tr></td>
<tr><td>Repeat Password: </td>
<td><input type="password" name="pass2" width="100"></td></tr>
<tr><td colspan="2"><centeR><textarea cols="35" rows="5" READ-ONLY>YOUR TERMS OF SERVICE HERE</textarea></center></td></tr>
<tr><td colspan="2"><center><input type="checkbox" name="tosagree"> <b>I Agree</b></center></td></tr>
<tr><td colspan="2"><br><center><input type="submit" value="Register"></td></tr>
</table></center></form>
</center>

What the above code is, is a form that has the following fields: username, password, confirm password, email, confirm email, and TOS Agree Statment. This is just the basic information, you might want more information later but for now, leave it the way it is. So, do you think you understand that? Well, as you may or may not have caught from the code, the form points to a file called "register.php", and you guessed it, thats the file were gonna make next.

So go ahead and Create a blank php file called 'register.php'. This file will act as a buffer for the information. It will check to make sure that both the confirmation password and normal password are the same and the same thing for the emails. It will also make sure that the user has checked the I Accept checkbox. It will only allow for the addition of the new member if the username hasnt been taken yet. So lets take a look at the code:
CODE

<?
$user = strtolower($_POST['username']);
$pass1 = $_POST['pass'];
$pass2 = $_POST['pass2'];
$email1 = strtolower($_POST['email']);
$email2 = strtolower($_POST['email2']);
$tos = $_POST['tosagree'];

if (!$tos)
$error .= "» You did not agree to the Terms of Service<br>";
if($pass1 != $pass2)
$error .= "» Your Passwords do not match<br>";
if ($email1 != $email2)
$error .= "» Your Emails do not match<br>";
$allusers = file('userdb.txt');

foreach($allusers as $Key => $Val)
{
   $allusersinfo[$Key] = explode("|##|", $Val);
}
for($K = 0; $K < sizeof($allusers); $K++)
{
if ( $user == $allusersinfo[$K][0])
{
$error .="» Your username is already taken<br>";
$K = sizeof($allusers);
}
}

if (!$error)
{
$fileh = fopen('userdata.txt','a');
$writecontent = "\r\n" . $user . "|##|" . md5($pass1) . "|##|" . $email1 . "|##|" . "Member|##|" . sizeof($allusers) . "|##|Undisclosed|##|*URL TO DEFAULT PICTURE*";
fwrite($fileh, $writecontent);
fclose($fileh);
echo "Thank you for Joining, you may now login";
}
else
{
echo "there were a few errors<br><br>";
echo $error;
echo "<br><a href='java script:history.go(-1);'>Click here</a> to go back";
}
?>

You will need to replace "*URL TO DEFAULT PICTURE*" with the default picture you want them to have when joining. What this does is it takes the variables from the signup page, it verifies them, it logs all the errors into variable and according to the errors gives you a message accordingly. If you have no errors it will tell you "Thank you for Joining, you may now login" but if you have errors it will specifically tell you what is wrong and give you a link back. The reason we use the |##|'s is becaues how often do people use |##| when typing? Not very often ill tell you that much. And later, using a nice little php fuction called "explode", we can take those out and have nice and neatly organized information.

Now, beleive it or not, that is ALL... for the signing up. anyway. Now we still have to login.

We will do this the same way we did with the signing up. We will start with the form. Now Create a black php or html document called 'signin.php' or 'signin.html'. Put this code in the file:

CODE

<div align="center"><table border=0>
<tr><td><form method="POST" action="login.php" name="login">Username:</td>
<td><input type="text" name="name" class="forminput" size="7"></td></tr>
<tr><td>Password:</td>
<td><input type="password" name="pass" class="forminput" size="7"></td></tr>
<tr><td colspan="2"><center><input type="submit" value="Login"></form></center></td></tr>
<tr><td colspan=2><font size="3">Not a member? <a href="*SIGNUP URL HERE*">Sign Up!</a></font></table></div>

*you need to replace "*SIGNUP URL HERE*" with the url to the signup page*

What this is is a form that asks you for your username and password. It also has a link for you to click if you wish to signup because you arent a member. Think you can guess the next page to do? Its LOGIN.php just like in the form tag. So Create a blank php file called 'login.php. What it will do is check to see if your login information is in the text file or not. Lets look at the code:
CODE

<?
$user = $_POST['name'];
$pass = $_POST['pass'];

$allusers = file('userdata.txt');

foreach($allusers as $Key => $Val)
{
   $allusersinfo[$Key] = explode("|##|", $Val);
}
for($K = 0; $K < sizeof($allusers); $K++)
{
if ( strtolower($user) == $allusersinfo[$K][0] && md5($pass) == $allusersinfo[$K][1])
{
setcookie("username",$user,time()+60*60*24*30);
setcookie("email",$allusersinfo[$K][2],time()+60*60*24*30);
setcookie("rank",$allusersinfo[$K][3],time()+60*60*24*30);
setcookie("userid",$allusersinfo[$K][4],time()+60*60*24*30);
$loggedin = 1;

$K = sizeof($allusers);
}
}
if ($loggedin)
{
?>
You Are Now Logged In <? echo $user; ?>
<?
}
else

{
?>
There was an error with your login information.
<?
}
?>

What this code does it it takes your login information and stores it into a variable. It reads the contents of the database and then EXPLODES out the |##|'s Leaving Our users and their information in nice and neat little arrays. After it does that, lets say we want to get the picture url for the member with the user id of '1'. to do this, we could simply use $user[1][6] because it is the first member, and the picture url is after the 6th |##|. Understand? If you will put this code at the top of all your php pages you will be able to use that syntax:
CODE

$allusers = file('userdata.txt');
foreach($allusers as $Key => $Val)
{
   $user[$Key] = explode("|##|", $Val);
}


If all the login information is correct, it stores the username, email, userid, and rank in cookies that are set to expire in 30 days.

Now, Lets say on your main page you want to make a welcome message. Depending on if they are logged in or not, you want it to either say 'Welcome Guest' or 'Welcome *username*'. Well We could do this pretty easily using those cookies i talked about earlier. to do this you would use somthing along the lines of:
CODE

<?
if($_COOKIE['username'])
echo 'Welcome ' . $_COOKIE['username'];
else
echo 'Welcome Guest';
?>

What this does is it checks to see if the variable for username is set, if it is then the user is then that means the user must be logged in so then the computer will echo to the screen 'Welcome *username*'. If it isnt, then that means that the user is not logged in and it echos 'Welcome Guest' to the screen.

I tried to make it as simple and painless as i possibly can, but beleive me, this was the easy part. When you read the forum tutorial you will understand why. We will be throwing out the conventional 'Nice and neat' for a jumbled mess, but if we program it just right, we can make the computer work it out for us

 

 

 


Reply

masterio
Nice tutorial but it seems need more improvement like, check the email whether is valid or not, Filtering some "bad" characters. Let's say what about if some users by accident fill '|##|' characters. I think the results is unexpected!.

Here the code that i've used in my website!.

CODE
// function to block/allowing what characters we want to pass
function filter_str($string, $other='')
{
if ($other == '')
   $filter = ereg_replace('[^a-zA-Z0-9_]', '', $string);
else
   $filter = ereg_replace("[^a-zA-Z0-9_$other]", '', $string);
  
  return $filter;  
}

// function to check the email format
function check_email($email)
{
if (ereg('^[a-zA-Z0-9_\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$', $email))
  return true;
else
  return false;
}



Usage of the function:

CODE
// example
$page = filter_str($_GET['page']);  // only alphanumeric that allowed
$name = filter_str($_POST['name'], " .,");  // alphanumeric plus space, coma, and dot is allowed
$email = $_POST['email'];

if (!check_email($email)    // if email didn't valid
  exit("Sorry, it seems your email is not valid");

// then you can process the data


hope's this can help someone! biggrin.gif

 

 

 


Reply

Tsunami
lol, like i said, how often do people type |##|? i dont think ive seen it once .... untill now anyway....

But i suppose that it would be kind of useful to make sure just in case they do use it.

when i do email validation i like to use the mail function, that way it will send them an email saying "Thanks for Joining' or something to the sort. im glad you pointed it out though cause im sure it will come in handy...

judging from ur code seems you know quite a bit of php to know how to use regular expressions like that :-p

Reply

premracer
kool thanks, maybe i will give this a try.

Reply

truefusion
I would advise just Chmodding the file to 666 only. Cause that's all that seems to be needed. Another thing, i'd have an .htaccess file preventing users from peeking inside the "userdata.txt" file. One more thing, for extra security: instead of just md5-ing the password i'd also sha1 it, for the register.php file, like so:
CODE
$writecontent = "\r\n" . $user . "|##|" . sha1(md5($pass1)) . "|##|" . $email1 . "|##|" . "Member|##|" .


Of course, you'd have to change another line in "login.php":
CODE
if ( strtolower($user) == $allusersinfo[$K][0] && sha1(md5($pass)) == $allusersinfo[$K][1])

Reply

bhavesh
Nice work Tsunami and Masterio, thanx. Good security tip by truefusion.
I will use this code in my site but would like to add one more feature, "Forget Password" option, would you take time to write the code for me.

Reply

Tsunami
Ok here is a forgot password thing, since its md5 hashed you cant send the login info so i made it so that you can change the password. I havent had the chance to test it out properly but i beleive it should work biggrin.gif
Save this as 'forgot.php'... everything is contained in htis one file
CODE

<?
if (!$_GET['sent'] && !$_GET['id'])
{
?>
<form name="forgot" action="forgot.php?sent=1" method="POST">
<center>Please enter your email to request a password reset<br><input type="text" name="email" size="10"><br><input type="submit" value="submit"></center></form>
<?
}
else if($_GET['sent'])
{
$fileh = file('userdata.txt');
foreach($fileh as $key => $val)
$user[$key] = explode("|##|",$val);
for($k=1; $k<sizeof($fileh);$k++)
{
if(strtolower($user[$k][2]) == strtolower($_POST['email']))
{
$user = $user[$k][0];
$pass = $user[$k][1];
}
}
if($user)
{
$emailbody = "If you have requested a password request then follow the instructions below<br>1) go to this link <a href='http://YOUR SITE GOES HERE YOUR SITE GOES HERE/forgot.php?id=" . md5($user) . "'>http://YOUR SITE GOES HERE YOUR SITE GOES HERE/forgot.php?id=" . md5($user) . "</a><br>2) Use that form to reset your password<br>3)Login!<br><br>If you did not request this then please disregard this message";
@mail($_POST['email'],"Password Reset Request",$emailbody);
?>
Your Request has been sent
<?
}
else{?>
that is an invalid email
<?
}
}else if($_GET['id'] && !$_GET['reset'])
{
?>
<form name="forgot" action="forgot.php?id=<?echo $_GET['id'];?>&reset=1" method="POST">
<center>Enter a New Password<br><input type="text" name="pass" size="10"><br><input type="submit" value="submit"></center></form>
<?
}
else if ($_GET['id'] && $_GET['reset'])
{
$fileh = file('userdata.txt');
foreach($fileh as $key => $val)
$user[$key] = explode("|##|",$val);
for($k=1; $k<sizeof($fileh);$k++)
{
if($_GET['id'] == md5($user[$k][0]))
{
$user[$k][1] = md5($_POST['pass']);
}
}
$fileh2 = fopen('userdata.txt','w');
fwrite($fileh2,$fileh[0]);
for($k=1;$k<sizeof($fileh);$k++)
{
for($l=0;$l<sizeof($user[1]);$l++)
fwrite($fileh2,$user[$k][$l] . "|##|");
fwrite($fileh2,"\r\n");
}
fclose($fileh2);
?>
your password has been reset, please login
<?
}?>

You need to edit where it says YOUR SITE HERE YOUR SITE HERE to your site but yea, im not gonna take the time to explain how it works unless you want me to since this was made for a request... any one can use it... hell i might even use it...
Thanks for your input :-p

Reply

delivi
thanx dude for this wondeful tutorial

but keeping the login information will create security risks.

But I'll be using this in small sites where security is not a matter.

Reply

Unstoppable
This tutorial is quite useless, it doesn't work =/. In the signin.php there cant be <tr> or <td> between <form> and </form>, according to my dreamweaver that is. That's why it doesn't work, so could u mind fixing it for this tutorial to be useful. I'd really like to have a working login system... =(. This is like the 20th login system i tried to use, but none of em worked so far. I just copy/paste the code, so I think the problem isn't me.

Reply

serverph
simply follow the instructions carefully, step-by-step. and then work out the changes below:

a little problem is encountered with the register.php code above. look for userdb.txt and replace it with userdata.txt as what it should actually connect to.

in case you're having trouble with the userdata.txt, lose the quotes as provided above. it should appear like this:
CODE
**username|##|password|##|email|##|rank|##|userid|##|name|##|picture**


where it shows:
CODE
echo "Thank you for Joining, you may now login";

change it to:
CODE
echo "Thank you for Joining, you may now <a href='signin.php'>sign in</a>";


where it shows:
CODE
echo "<br><a href='java script:history.go(-1);'>Click here</a> to go back";

change it to:
CODE
echo "<br><a href='signup.php'>Click here</a> to go back";


you will initially have to view/access signup.php. that should work.

and use NOTEPAD, when you're making code changes. wink.gif better that way. unless you are already comfortable with using dreamweaver without going through the troubles you're experiencing with custom codes.

of course, you need to have a suitable test environment to test and troubleshoot the code. wink.gif that could be your localhost or an online host like trap17 or qupis. smile.gif

btw, i could have easily given you the working code i have tested, but where's the fun in that right? biggrin.gif just follow the changes given, and you can make it work too. smile.gif makes it more educational for you. just continue this thread if there are other questions you may have. smile.gif

Reply

Latest Entries

iGuest
Hi,

Thanks for the wonderful tutorial. It was very helpful for me.

Does anybody know how to delete loggedin user's account using flat files?

Please shade some light :)

By the way this is my code below, that delets the whole data instead of one single user.

<?php
if($_POST['yes'] != '')
{

$username = $_SESSION["loggedin"];
$newUser = '/'.$username.'/';

$file_original=fopen("data.Txt","are") or die ("Cannot open $file_original");
$file_edited=fopen("dataedit.Txt","w") or die ("Cannot open $file_edited");
while(!feof($file_original))
{
$line=fgets($file_original);

if(!preg_match($newUser,$line))
{
fwrite($file_edited,$line);
}
}
fclose($file_original);
fclose($file_edited);

$file_original=fopen("data.Txt","w+") or die ("Cannot open $file_original");
$file_edited=fopen("dataedit.Txt","are") or die ("Cannot open $file_edited");

$data=fread($file_edited,200);

fwrite($file_original,$data);
fclose($file_original);
fclose($file_edited);

session_destroy();
unset($_SESSION["loggedin"]);

$success = "<font size='4' color='#333399'><b>Your membership has been removed successfully!.</b><a href='logout.Php'>Click here to go back to SFC</a></font>";
echo $success;

exit;

}
?>



-reply by learner

Reply

iGuest
Losing data in the userdata.txt file
Flatfile User Login/signup

Wonderful scripting. It seems to work like a champ. I've added seven fields to gather more information from my website's users. The only problem is that when the data is entered into the userdata.Txt file, only the first character of three of those fields shows up. Four of the others work fine.
I get an error when trying to login. Here is my code:

Userdata.Txt
[code]**userid|##|username|##|password|##|email|##|firstname|##|lastname|##|stre
et|##|city|##|state|##|zip|##|taxid**[/code]

Register.Php (I've added a few functions for email validation)
[code]<?
$user = strtolower($_POST['username']);
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$street = $_POST['street'];
$city = $city['city'];
$state = $state['state'];
$zip = $zip['zip'];
$taxid = $_POST['taxid'];
$pass1 = $_POST['pass'];
$pass2 = $_POST['pass2'];
$email1 = strtolower($_POST['email']);
$email2 = strtolower($_POST['email2']);
$tos = $_POST['tosagree'];

Function check_email_address($email1) {
// First, we check that there's one @ symbol, and that the lengths are right
if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email1)) {
// Email invalid because wrong number of characters in one section, or wrong number of @ symbols.
Return false;
}
// Split it into sections to make life easier
$email_array = explode("@", $email1);
$local_array = explode(".", $email_array[0]);
for ($I = 0; $I < sizeof($local_array); $I++) {
if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$I])) {
return false;
}
}
if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name
$domain_array = explode(".", $email_array[1]);
if (sizeof($domain_array) < 2) {
return false; // Not enough parts to domain
}
for ($I = 0; $I < sizeof($domain_array); $I++) {
if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$I])) {
return false;
}
}
}
return true;
}
If (!check_email_address($email1)) {
echo $email1 . ' is not a valid email address.';
}
If (!$tos)
$error .= "� You did not agree to the Terms of Service<br>";
If($pass1 != $pass2)
$error .= "� Your Passwords do not match<br>";
If ($email1 != $email2)
$error .= "� Your Emails do not match<br>";
$allusers = file('userdata.Txt');

Foreach($allusers as $Key => $Val)
{
$allusersinfo[$Key] = explode("|##|", $Val);
}
For($K = 0; $K < sizeof($allusers); $K++)
{
If ( $user == $allusersinfo[$K][1])
{
$error .="� Your username is already taken<br>";
$K = sizeof($allusers);
}
}

If (!$error)
{
$fileh = fopen('userdata.Txt','a');
$writecontent = "\are\and" . Sizeof($allusers) . "|##|" . $user . "|##|" . Sha1(md5($pass1)) . "|##|" . $email1 . "|##|" . $first_name . "|##|" . $last_name . "|##|" . $street . "|##|" . $city . "|##|" . $state . "|##|" . $zip . "|##|" . $taxid . "";
Fwrite($fileh, $writecontent);
Fclose($fileh);
Echo "Thank you for Joining, you may now <a href=\"signin.Html\">sign in</a>";
}
Else
{
Echo "there were a few errors<br><br>";
Echo $error;
Echo "<br><a href='signup.Php'>Click here</a> to go back";
}
?>[/code]

Login.Php
[code]
<?
$user = $_POST['name'];
$pass = $_POST['pass'];

$allusers = file('userdata.Txt');

Foreach($allusers as $Key => $Val)
{
$allusersinfo[$Key] = explode("|##|", $Val);
}
For($K = 0; $K < sizeof($allusers); $K++)
{
If ( strtolower($user) == $allusersinfo[$K][0] && sha1(md5($pass)) == $allusersinfo[$K][1])
{
Setcookie("username",$user,time()+60*60*24*30);
Setcookie("email",$allusersinfo[$K][4],time()+60*60*24*30);
Setcookie("firstname",$allusersinfo[$K][5],time()+60*60*24*30);
Setcookie("lastname",$allusersinfo[$K][6],time()+60*60*24*30);
Setcookie("street",$allusersinfo[$K][7],time()+60*60*24*30);
Setcookie("city",$allusersinfo[$K][8],time()+60*60*24*30);
Setcookie("state",$allusersinfo[$K][9],time()+60*60*24*30);
Setcookie("zip",$allusersinfo[$K][10],time()+60*60*24*30);
Setcookie("taxid",$allusersinfo[$K][11],time()+60*60*24*30);
Setcookie("userid",$allusersinfo[$K][1],time()+60*60*24*30);
$loggedin = 1;

$K = sizeof($allusers);
}
}
If ($loggedin)
{
?>
You Are Now Logged In as <? echo $user; ?>
<?
}
Else

{
?>
There was an error with your login information.
<?
}
?>[/code]


I'm assuming my login issue is because I have my cookie sessions including the fields that have the lost data?
Any help with this would be awesome.

-question by chaoskreator

Reply

iGuest
Can somebody?
Flatfile User Login/signup

I don't understand the setup, can somebody create a .Zip file and mail it to me? That would be very nice. You will get credits on my website, pro-fc.Net!

-question by B�rge

Reply

flashy
wow nice tutorial - looks complex lol. I'll have to use this one day as im am really getting into the spirit orf PHP now smile.gif. Sweeet.

Reply

lailai
Nice tut here! Can you make as flatfile post? I understand how it works, but I don't know where it checks if it's registered or not and the post layout.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2, 3
Recent Queries:-
  1. alphanumeric string validation php allow space and coma - 11.04 hr back. (1)
  2. .php .txt only login - 18.10 hr back. (1)
  3. extract "picture url" regex - 18.44 hr back. (1)
  4. flat file php signup - 18.58 hr back. (1)
  5. php user login flatfile password - 23.92 hr back. (1)
  6. make a flat file act like a folder - 27.76 hr back. (1)
  7. build site login with flat file - 28.83 hr back. (1)
  8. php sign up class txt file - 29.14 hr back. (1)
  9. php login textfile - 58.99 hr back. (1)
  10. php login text file - 59.88 hr back. (2)
  11. user did not login 30 days email php - 91.82 hr back. (1)
  12. php password flat file - 114.32 hr back. (1)
  13. free download project login-signup in php - 116.22 hr back. (1)
  14. edit line in flat file php - 123.31 hr back. (1)
Similar Topics

Keywords : flatfile, user, login, signup, text, files, compatable, forums, message, system

  1. Debug Exe Files
    How to debug an exe file. (4)
  2. Download Files Off Esnips.com
    even now that the download button is gone! (0)
    hey everyone, i am sure that many of you may have heard of esnips , which is basically online file
    storage/sharing. you can now find almost any file imaginable on esnips, and in many ways it is
    better than rapidshare. previously, once you are signed in to esnips, you were able to download any
    esnips file via a button only viewable to members. back then, there was a method to download any
    file without even signing in. then, probably due to legal issues, users were able to choose whether
    or not people could download their files. the hack mentioned above, though, still....
  3. User Permission Function [php]
    Determining User Permissions (3)
    There have been several recent request for methods to restrict access to various pages on a web-site
    based on User Permissions in sites that have a Login System in place. Here is some code showing one
    method to restrict access by providing a sub-set of your site's links based on the User's
    permissions. In this demonstration, I have defined a string for each 'level of user'
    determining which set(s) of links they can view on your site. Normal MySql procedure would be to
    read the User's permission level from a record in the database. For the purpose of ....
  4. How To Hide Your Important Files And Folders
    In Ms. Windows, Without Using Programmes. (7)
    Most of people share their computers with others -family, mates, buddy or whoever- and that sharing
    threatens their secrets and private file to be revealed, letting some people to know things they
    shouldn't know.. My Securing Way: Operation - Camouflage Use an Icon
    Editor to generate a 1x1 Transparent Icon and Save it .. > 1 Open CMD.. Start >> Run or Press
    WindowsLogo+R.. Lets Say you wanna hide a Folder named " secure " and it's located in
    E:\folder\ so Write E: and Press Enter then Write Cd folder and Enter then At....
  5. How To Use Command Prompt As A Text Editor
    (6)
    In this tutorial, I will show you how you can use Command Prompt to create text files. It is very
    simple and you can also use it to write output from a command into a text file. This can be
    particularly useful when you need documentation from a DOS program in a text file when you use the
    help command or something similar. In order to do this you simply use this DOS command. echo
    Text >> test.txt This will create a new text file called test and echo the contents into it. If
    we wanted to write a 2 line document, we could do something like: echo Hello >> test.txt e....
  6. To Automatically Run Command When Login / Logoff
    (3)
    In case that you need login and / or logoff to execute some commands. You could do this with GPO
    login / logoff function. Here is step: 1.) Choose Start Menu -> Run -> type in gpedit.msc 2.)
    Expand User -> Windows Settings ->Script ( Logon / Logoff ) 3.) Double-Click either one and a dialog
    displayed 4.) Click the add button and then browse the command files that you wish to executed. The
    Script Parameters allowed you to pass any extra parameters to the command or applications. Click OK
    button. 5.) You command now should displayed on Name / Parameters List Box. Click O....
  7. Simple Php Login And Registration System
    (10)
    Hello. This is my first web tutorial ever. This is basically a simple register and login script.
    Yes, I know it’s a bit rubbish but I’m quite new to PHP/MySQL. Here’s the register form. This can
    be any file extension you like. I’d recommend calling it register.html . CODE
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html
    xmlns="http://www.w3.org/1999/xhtml"> <head> <meta
    http-equiv="Content-Type" content="text/ht....
  8. How To Create Forum Smilies
    Make smilies for your forums! (3)
    Wanna make your own pixel smilies! For cutenews, your forums, websites, etc.. What you need: A
    graphics program that allows you to zoom in very closely to an image (paint is OK... but not the
    best...) OPTIONAL... a program that has a grid when you zoom in (most graphics programs have them)
    I'll use a program called paint.NET START 1. Copy this image and paste into a graphics
    program 2. Then ZOOM so you can see the image close up. For easy use make sure it is in some sort
    of "grid mode" Example: 3. Draw your eyes, face, nose, ears, etc... Your *may*....
  9. How To Make Pixel Text With Paint!
    Cool if you don't have photoshop or any of those (10)
    First you need a font called minimum +1 Follow these instructions CAREFULLY on how to install the
    font. If you're using firefox RIGHT CLICK on the link below and select "save link as"
    DOWNLOAD LINK READ THE ABOVE STUFF BEFORE CLICKING ON ME!!!! Then save it in
    your documents. Don't worry if firefox "quits" the download. As long as it is in your documents
    you're fine. ON IE.... Right click on link above and select "save traget as" Then go to
    start and open up "my documents". The font should be there. Keep that window open g....
  10. How To Better Compress Files In Winrar
    (7)
    How to better compress files in winrar As you know Winrar is more popular and powerful than
    other compressor softwares. To better compress your files and folders follow below steps: 1- Right
    click on your file and select "Add to archive…" from context menu. A dialog box will appear. 2- In
    General tab and in "Compression Method" dropdown menu, select "Best". 3- Click on Advanced tab and
    then click on "Compression" botton. Advanced Compression Parameters dialog box will appear. 4- In
    Text Compression section select Force and in Prediction Order type 63 and in Memory....
  11. Simple User System
    php, mysql driven (19)
    Hey! Maybe you've seen my other tutorials...or my signature.. Anyways I'm going to show
    you how to make a system so users of your site could register accounts and you could have protected
    - user only - pages on your site /smile.gif" style="vertical-align:middle" emoid=":)" border="0"
    alt="smile.gif" /> Ok, so we start by creating a config.php file. CODE <?php
        $dbhost   = 'database host';     $dbname   = 'database name';
        $dbusername   = 'database username';     $dbuserpass = 'database pas....
  12. Cpanel Analysis And Log Files
    Part 4 of My 7 Part Tutorial (0)
    This Tutorial will be divided into 7 different parts, and this is the first part, when i get the
    other parts together, i will post the links under here /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> Enjoy. Part 1: E-mail Management Part 2: Useful Site
    Management Tools Part 3: Useful Site Management Tools2.1 Part 5: Advanced Tools Part 6:
    PreInstalled Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel Tutorial
    Part 3: Analysis and Log Files In this tutorial I will, in detail explain all ....
  13. How To Fix Problems With Shareaza
    ONLY for people to download LEGAL files with. (1)
    Can't run shareaza and surf the internet at the same time? There could be two
    problems: Your uploads are killing your downloads and/or you are using Windows 95/98/ME. If you
    are uploading constantly and havent limited the bandwidth then it is likely that you are killing
    your download speed which is affecting your ability to surf the web and do other tasks. If you
    are uploading lots and download speeds are suffering: Start Shareaza. Click on the Tools menu,
    then click Shareaza Settings. In the box that just popped up, there is a list of men....
  14. How To Chmod Files
    (16)
    This is a short but useful tutorial on how to chmod files I offen find wap/web masters
    uploading scripts into their severs,creating databases,confirming scripts to work with the databases
    etc. but little you know that some people dont know how to chmod files.know how can you become a
    good wap/web master without knowing the important basics? Never the less this tutorial will guide
    and teach you how to chmod files and the importance it has. How many times have you uploaded a
    script/file and did everything right but you still getting errors,or you not being able to ....
  15. How To Create Self-unzipping Files
    for beginners (18)
    This tutorial is based on winzip 10.0 (but it should work on other versions). Create or open the
    file you would like unzipped. Now, on the Actions menu, click make .exe file. A popup box should
    popup. Click ok. Now in the popup box that appears, type in the default folder that the program
    will unzip to. Press ok. Now another popup will tell you if you want to test the file, click yes.
    Now click ok again in the box that appears. Now press unzip. If it says - files unzipped
    succsessfully! Click ok and pat your self on the back! You have created the self-....
  16. How To Open Bam & Tt Files, long 3 part tutorial
    (2)
    Part 1 Extracting files PLEASE DO NOT COPY ! This links with my other topic to 5.6
    bams , Loads of people have asked me how do you get pview , extract .mf files. Well im going to show
    you all in one. 1. Download Panda3D v.1.1.0 from here Start Picture Totorial Again,
    ugggh ! 1. Navigate your way to where you installed Panda3D ( It is usually :
    C:\Panda3D-1.1.0 ) 2. Open the bin folder in the Panda3d directory 3. Find and copy
    Multify.exe and PView.exe 4. Paste the Files to the desktop 5. Navigate your way to C:�....
  17. Php Script To Make A Link List
    From the list of the Directory Files (6)
    Well, it has been a while since I have added anything to the Tutorial Sectiion, so here is another
    script for the members to enjoy. This one creates a list of links from the contents of the directory
    which it is run from. For instance, if you run it from the public_html folder, then all the files
    (not the Directores) are listed and linked so when you click on the link, that file is parsed and
    output to the browser. Here is the code: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    An XHTML 1.0 Strict Page to List the files in this directory ....
  18. Templating System Using Php Includes
    Building a Dynamic site using Includes and flat-files. (13)
    Php based Templating System http://jlhaslip.trap17.com/template/index.php The Source Code
    for the scripts are included (literally) on the different pages on the Demo, including the Contact /
    Email script. The only page not there yet is the Message Script. Maybe tonight I will upload that.
    This one uses a little bit of query-string checking to confirm that the contents of the page are
    actually available (file_exists())and an allowed page content before serving it up. The
    'allowed page content' is done by checking against a flat-file containing an array....
  19. Building An Unordered List Of Anchors
    From a list of files in a folder (4)
    Building an Unordered List of Anchors from a Folder of files This script reads files from the
    named folder and then builds a list of links from the filenames using the contents of the first
    tag as the link description and the file-name as the anchor href . The file should be a web
    readable file such as html or php. This script may come in handy for creating a list of clickable
    links for use in sidebars and on 'sitemap' pages. Simply build a series of html files and
    store them all in a single folder, ensuring that the description inside the first h3....
  20. Automatic Login
    in WinXP (5)
    Ever wanted to just turn on our computer and when you get back it's already on the desktop?
    (Rather then having to login at the welcome screen) Now some computer have this feature by default,
    but what if it gets broken, try this. On an Administrator account goto start >> Run, and type
    "control userpasswords2" (without the quotes) Uncheck the box that "Users must enter a Username and
    Password to use this computer", then press Ok. You will be prompted to enter a default user and
    their pasword, then next time you restart the computer it will automaticaly login to that....
  21. Change / Modify The Title Bar Text In IE6 Or FF
    custom text in titlebar in ie or firefox (3)
    Changing The Text In The Bar (IE and Firefox Only) This will allow you to change the text in
    the title bar of either msie6 (may work for ie7 beta or earlier versions) and mozilla firefox 1.0.
    By default this is set to Microsoft Internet Explorer provided by ##### or Mozilla Firefox .
    Here's how to change that..... For Internet Explorer (6) Warning! Changing the title
    for internet explorer requires editing the registry. Making changes in the registry in keys or
    values that are not listed here could cause your computer to crash or slow. Follow the fo....
  22. Delete Files And Directories Using Php
    following up from creating and writing (7)
    How To Delete Files and Directories follow up from creating them Hello all and
    welcome to my second tutorial involving file management. In my previous tutorial , I explained how
    to create, write and read files. In this tutorial I'll explain how to remove the files and
    directories you took so long to create. I did not explain last time how to create directories as I
    did not know, now I do, you can use the mkdir() function. Now with this tutorial.... Removing
    Files Removing files can easily be done with the unlink() function: CODE <? un....
  23. How To Read And Write Files Using Php
    php :: reading and writing files (20)
    How To Read And Write And Files a simple trick using php For this script all you need is a
    php enabled server, a text document and a basic understanding of php itself: Beginning Create a
    text file called name.txt in any directory. Change the file permissions to 777 Create a empty
    php file in the same directory. You are now ready to begin reading and writing your files. If you
    just want to read the file scroll straight down to Reading the File else read through the whole
    tut /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> ....
  24. Css And Javascript Combined For Dynamic Layout
    use of different CSS files at same site (9)
    This tutorial is meant for people that are dealing with problems while coding their site at 100% of
    width. Important notice: Some people has JavaScript disabled, so they will not be able to load CSS
    file (take this in account when creating your website). How this script works. In the HEAD of your
    HTML document will apply this command, so variable.js file will be load at start: CODE
    <script type="text/javascript" src="variable.js"></script> In
    browser JavaScript file variable.js is loaded. This Javascript file consist of this para....
  25. Simple Login In Visual Basic 6
    user interaction example trough login programm (5)
    First of all, I am NOT a programmer, this is something my friend taught me. It describes basic
    interaction with the user, while showing basic functionality of this simple programm. So, without
    further ado, we're off to the tutorial: First of all, start your visual basic, when prompted
    for new project, select Standard Exe . Next, we need to open code window, so we can start typing
    the program. This can be done in two ways, one is double clicking on the form, or selecting Code
    from View menu. If you double clicked on the form, you will see following text: CODE ....
  26. How To Put A Phpbb Login Box On Your Main Site.
    Code and .php included!!! (18)
    I have included my coded file with this... Ok here is the code. CODE // //Create login area,
    replace the phpBB2 in /phpBB2/login.php with your forum's //directory // <form
    action="/phpBB2/login.php" method="post" target="_top"> <table
    width="25%" cellspacing="2" cellpadding="2" border="0"
    align="center">  <tr> <td align="left"
    class="nav"><a href="/phpBB2/index.php" class="nav">Prank Place
    Forum Index</a></td>....
  27. Complete Login And Registration System
    doesn't use mysql! (9)
    kLogin 0.1 QUOTE(readme.txt) Readme file to kLogin 0.1 To use the internet explorer fix:
    download the latest IE7 ZIP file
    (http://sourceforge.net/project/showfiles.php?group_id=109983&package_id=119707) Extract the ie7
    zip file to the root directory of your web server. Example, if you are using a unix/linux server,
    it's on "public_html/" or "home/public_html" Open kLogin.php file with your editor and edit the
    $info_text or $info_txt variable. Then, extract the kLogin.php file in to the root
    directory of your web server also. Just run kShoutBo....
  28. Php Simple Login Tutorial
    Learn how to make a simple login! (63)
    I have been quite busy lately, trying to design and code my site (far from done XD). And after
    having learned how to make a simple login, I will try to write my own tutorial, for you
    /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> the tutorial Step 1
    : The first step in designing a member system is to plan out exactly what you need. A common impulse
    among programmers is to jump right in and start coding. I'll be honest and admit that I'm
    guilty of this more so than anyone. However, since I'm in control of this conversation (y....
  29. Complete Login System
    With PHP + MYSQL (56)
    Its an complete login sistem made and tested by me and I think itwill be very usefull for people who
    are tryn to learn PHP. First, let's make register.php: CODE <?
    include("conn.php"); // create a file with all the database connections
    if($do_register){ // if the submit button were clicked if((!$name)
    || (!$email) || (!$age) || (!$login) ||
    (!$password) || (!$password2)){ print "You can't let
    any fields in blank....
  30. Delphi
    Simple Text Parsing Function (1)
    Because parsing is such an integral part of string manipulation, I took the time to make a quick and
    simple parse function. For you VBers, Delphi is a derivative of Pascal...it's powerful, simple,
    and (best of all) doesn't need external component (eg: ocx files). Hence the code: Code:
    function TForm1.SimpleParse(MainString, BeginString, EndString: string): string; var PosBeginString:
    integer; PosEndString: integer; begin PosBeginString := Pos(BeginString, MainString) +
    Length(BeginString); PosEndString := Pos(EndString, MainString); Result := Copy(MainString, ....

    1. Looking for flatfile, user, login, signup, text, files, compatable, forums, message, system

Searching Video's for flatfile, user, login, signup, text, files, compatable, forums, message, system
Similar
Debug Exe
Files - How
to debug an
exe file.
Download
Files Off
Esnips.com -
even now
that the
download
button is
gone!
User
Permission
Function
[php] -
Determining
User
Permissions
How To Hide
Your
Important
Files And
Folders - In
Ms. Windows,
Without
Using
Programmes.
How To Use
Command
Prompt As A
Text Editor
To
Automaticall
y Run
Command When
Login /
Logoff
Simple Php
Login And
Registration
System
How To
Create Forum
Smilies -
Make smilies
for your
forums!
How To Make
Pixel Text
With
Paint! -
Cool if you
don't
have
photoshop or
any of those
How To
Better
Compress
Files In
Winrar
Simple User
System -
php, mysql
driven
Cpanel
Analysis And
Log Files -
Part 4 of My
7 Part
Tutorial
How To Fix
Problems
With
Shareaza -
ONLY for
people to
download
LEGAL files
with.
How To Chmod
Files
How To
Create
Self-unzippi
ng Files -
for
beginners
How To Open
Bam & Tt
Files, long
3 part
tutorial
Php Script
To Make A
Link List -
From the
list of the
Directory
Files
Templating
System Using
Php Includes
- Building a
Dynamic site
using
Includes and
flat-files.
Building An
Unordered
List Of
Anchors -
From a list
of files in
a folder
Automatic
Login - in
WinXP
Change /
Modify The
Title Bar
Text In IE6
Or FF -
custom text
in titlebar
in ie or
firefox
Delete Files
And
Directories
Using Php -
following up
from
creating and
writing
How To Read
And Write
Files Using
Php - php ::
reading and
writing
files
Css And
Javascript
Combined For
Dynamic
Layout - use
of different
CSS files at
same site
Simple Login
In Visual
Basic 6 -
user
interaction
example
trough login
programm
How To Put A
Phpbb Login
Box On Your
Main Site. -
Code and
.php
included!
;!!
Complete
Login And
Registration
System -
doesn't
use
mysql!
Php Simple
Login
Tutorial -
Learn how to
make a
simple
login!
Complete
Login System
- With PHP +
MYSQL
Delphi -
Simple Text
Parsing
Function
advertisement



Flatfile User Login/signup - Uses text files only (compatable with forums and message system)



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE