Diablo: counter prob

Beitrag lesen

Ich hab mal mit einem workshop einen counter erstellt. Hier der skript:
<?php
$img = "";
$animated_img = "";
$padding = 4;
$width = 16;
$height = 22;
$fpt = "account.txt";
$lock_ip =1;
$ip_lock_timeout =3036;
$fpt_ip = "ip.txt";
function checkIP($rem_addr) {
global $fpt_ip,$ip_lock_timeout;
$ip_array = file($fpt_ip);
$reload_dat = fopen($fpt_ip,"w");
$this_time = time();
for ($i=0; $i<sizeof($ip_array); $i++) {
list($ip_addr,$time_stamp) = split("|",$ip_array[$i]);
if ($this_time < ($time_stamp+60*$ip_lock_timeout)) {
if ($ip_addr == $rem_addr) {
$found=1;
} else {
fwrite($reload_dat,"$ip_addr|$time_stamp");
}
}
}
fwrite($reload_dat,"$rem_addr|$this_timen");
fclose($reload_dat);
return ($found==1) ? 1 : 0;
}
if (!file_exists($fpt)) {
$count_dat = fopen($fpt,"w+");
$digits = 0;
fwrite($count_dat,$digits);
fclose($count_dat);
}
else {
$line = file($fpt);
$digits = $line[0];
if ($lock_ip==0 || ($lock_ip==1 && checkIP($REMOTE_ADDR)==0)) {
$count_dat = fopen($fpt,"r+");
$digits++;
fwrite($count_dat,$digits);
fclose($count_dat);
}
}
$digits = sprintf ("%0".$padding."d",$digits);
$ani_digits = sprintf ("%0".$padding."d",$digits+1);
echo "<table cellpadding=0 cellspacing=0 border=0><tr align=center>";
$length_digits = strlen($digits);
for ($i=0; $i < $length_digits; $i++) {
if (substr("$digits",$i,1) == substr("$ani_digits",$i,1)) {
$digit_pos = substr("$digits",$i,1);
echo ("<td><img src=$img$digit_pos.gif width=$width height=$height></td>");
} else {
$digit_pos = substr("$ani_digits",$i,1);
echo ("<td><img src=$animated_img$digit_pos.gif width=$width height=$height></td>");
}
}
echo "</tr></table>";
?>

Aber er gibt immer diese fehlermeldung aus:
Warning: split(): REG_EMPTY in /usr/export/www/vhosts/funnetwork/hosting/gothicer/counter/counter.php on line 17

ich kann aber keinen fehler endecken (bin auch kein php profi).
naja hier ist noch der Link zum workshop:
http://www.piranho.de/home/workshops/showworkshop.php?xid=195f50f8991cda4b2f17f0f1b30748d6&cat1=1&cat2=4&id=1700

was hab ich falsch gemacht?

mfg diablo