I have a piece of code that I can't seem to get to work properly...
Code: Select all
$dat = "May 23, 2003||100"
list ($date, $count) = split ('ї||]', $dat);the variable --> $count always comes out as blank no matter what it equals to...
The complete code is:
Code: Select all
$fil = fopen("$counter", r);
$dat = fread($fil, filesize("$counter"));
fclose($fil);
list ($date, $count) = split ('ї||]', $dat);
$fil = fopen( "$counter", w);
$count++;
$newcount = "$date||$count";
fwrite($fil, $newcount);
echo $date."<br>";
echo $count."<br>";$date = Correct
$count = 1
Thanks for any help you can give me...