View Single Post
  #6 (permalink)  
Old 07-01-09, 05:30 PM
=OTS=G-Man =OTS=G-Man is offline
Newbie Coder
 
Join Date: Jun 2009
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
should be something like

PHP Code:
<?
$activeadmlist 
"user_list.txt";
$current file_get_contents($activeadmlist);
$pos strpos($current$_SESSION['username']);

if (
$pos === false)
{
    
$current .= $_SESSION['username']."\n";
    
file_put_contents($activeadmlist$current);
}
else
{
    
//TODO:: do someting
}  

?>
used the code flow from your duplicate post

untested, but should work
Reply With Quote