the contents of the file online is: <id:0|Shai-Hulud|0>|
script:
<?php
$lid = 0;
$handle = fopen ('clan/members/online', "r");
if (filesize('clan/members/online'))
{
$old = fread($handle, filesize('clan/members/online'));
echo 'ok:' . $old;
}
if (strpos($old, 'id:' . $lid))
{
$a = strpos($old, 'id:' . $lid);
$b = strpos(substr($old, $a), '|') + 1;
$c = strpos(substr($old, $b), '|') - 1;
$nick = substr($old, $b, $c);
}
?>
output of old should be: ok:<id:0|Shai-Hulud|0>| , right?
but instead the output is: ok😐
whats wrong here? 😕