Направих втори smslog и се получи така
$openfile = 'C:\smslog.txt';
$handle = fopen($openfile, "r");
$contents = fread($handle, filesize($openfile));
$linez = explode("\n", $contents);
$inarray = count($linez);
$i = 0;
$givecredits = 900;
while($i<$inarray) {
$data=explode('pay mutest ', $linez[$i]);
$i++;
mssql_query("exec XCredits '".secure($data[0])."', ".$givecredits.";");
shoplog("Added ".$givecredits." to <b>".htmlspecialchars(secure($data[0]))."</b> for sending an sms");
}
fopen($openfile, 'w');
$openfile = 'C:\smslog2.txt';
$handle = fopen($openfile, "r");
$contents = fread($handle, filesize($openfile));
$linez = explode("\n", $contents);
$inarray = count($linez);
$i = 0;
$givecredits = 500;
while($i<$inarray) {
$data=explode('pay mutest ', $linez[$i]);
$i++;
mssql_query("exec XCredits '".secure($data[0])."', ".$givecredits.";");
shoplog("Added ".$givecredits." to <b>".htmlspecialchars(secure($data[0]))."</b> for sending an sms");
}
fopen($openfile, 'w');