First off I am not using a database at all.
I keep getting this when I echo and it should not be.
<?php
$handle = fopen("users.txt", "r");
$pieces = explode("/n", $handle);
echo $pieces[0];
fclose($handle);
?>
users.txt simply looks like this
username|password
Someone|123456
Now all I am trying to do is seperate the 2 lines into an array so I can further sort it later on. In the future there will be more lines added.
What am I doing wrong? I did a lot of searching on the site but it looks like this is usually associated with mysql which I am not using.
Thanks in advance
Josh