From 3c36413133de3a1c731338d7f40dad7148d5f148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20LU=C3=87I?= Date: Wed, 7 Jan 2015 20:22:06 +0100 Subject: split is deprecated move to explode --- usr/local/bin/3gstats.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr') diff --git a/usr/local/bin/3gstats.php b/usr/local/bin/3gstats.php index 02f1b17..a8a8fec 100755 --- a/usr/local/bin/3gstats.php +++ b/usr/local/bin/3gstats.php @@ -40,7 +40,7 @@ while(true) { $string = fgets($handle, 256); $elements = array(); - $elements = split(":", $string); + $elements = explode(':', $string); $elements[0] = trim($elements[0]); $elements[1] = trim($elements[1]); @@ -59,7 +59,7 @@ while(true) { break; case "^DSFLOWRPT": $items = array(); - $items = split(",", $elements[1]); + $items = explode(',', $elements[1]); $record['time'] = hexdec($items[0]); $record['upstream'] = round((floatval(hexdec($items[1])) * 8) /1024); $record['downstream'] = round((floatval(hexdec($items[2])) * 8) /1024); -- cgit v1.1