Hi, I have this code:
$iii = 'uonline/online_users.txt';
$user = $_SESSION['user_name'].'<br>';
$mcon = file_get_contents($iii);
str_replace($user,"",$mcon);
file_put_contents($iii, $mcon);
I am TRYING to delete $user from the file $iii.
Example:
online_users.txt Contains:
Matt<br>Ashley<br>Sally<br>Jason<br>Mike<br>
The persons username is Ashley, So It should find 'Ashley<br>' in the file and delete it:
online_users NOW Contains:
Matt<br>Sally<br>Jason<br>Mike<br>
How can I do this?? Please Help Me!
-Thanks!