Depra Tama
1 month ago
Like 4
Comment 3
#ASK  Cara memperbaiki line eror di bagian function ini gimana kang?
Pas di execute langsung muncul peringatan:

Deprecated: Function split() is deprecated in /home/u301477308/public_html/functions/fungsi_counter.php on line 83
Pengambilan gagal1 menu posisi kiri

Coding sample nya:
 {
 list($savedip,$savedtime) = split("\|",$line);
 if ($savedip == $ip) {$savedtime = $time;$found = 1;}
 if ($time < $savedtime + ($minutes * 60)) 
 {
 fputs($f,"$savedip|$savedtime\n");
 $users = $users + 1;
 }
 }
Write Comment

Arie+Wijayanto - { list($savedip,$savedtime) = @split("\|",$line); if ($savedip == $ip) {$savedtime = $time;$found = 1;} if ($time < $savedtime + ($minutes * 60)) { fputs($f,"$savedip|$savedtime\n"); $users = $users + 1; } }

Shin - ganti split() menjadi explode()

Gainza+M+Jiman - http://stackoverflow.com/questions/17815857/deprecated-function-split-is-deprecated-how-to-fix-this-statement