summaryrefslogtreecommitdiffstats
path: root/skripti/ipranges.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-05-26 19:51:14 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2023-05-26 19:51:14 +0200
commitdfab3a086a21f63a4668209ecb11b02118d50053 (patch)
tree405c9757ffed0facb8ada80c1a632d66a6bff356 /skripti/ipranges.php
parentinventar + upravljalnik (diff)
downloadr-dfab3a086a21f63a4668209ecb11b02118d50053.tar
r-dfab3a086a21f63a4668209ecb11b02118d50053.tar.gz
r-dfab3a086a21f63a4668209ecb11b02118d50053.tar.bz2
r-dfab3a086a21f63a4668209ecb11b02118d50053.tar.lz
r-dfab3a086a21f63a4668209ecb11b02118d50053.tar.xz
r-dfab3a086a21f63a4668209ecb11b02118d50053.tar.zst
r-dfab3a086a21f63a4668209ecb11b02118d50053.zip
Diffstat (limited to '')
-rwxr-xr-xskripti/ipranges.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/skripti/ipranges.php b/skripti/ipranges.php
index c1d0552..a387da9 100755
--- a/skripti/ipranges.php
+++ b/skripti/ipranges.php
@@ -9,7 +9,10 @@
$a = "";
$p = [];
$c = [];
-foreach (explode("\n", file_get_contents("https://ftp.ripe.net/pub/stats/ripencc/membership/alloclist.txt")) as $l) {
+$response = file_get_contents("https://ftp.ripe.net/pub/stats/ripencc/membership/alloclist.txt");
+if ($response === false)
+ exit(1);
+foreach (explode("\n", $response) as $l) {
if ($l == "")
continue;
if ($l[0] != " ") {