summaryrefslogtreecommitdiff
path: root/ddns.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-07-20 23:20:21 +0200
committerErich Eckner <git@eckner.net>2022-07-20 23:20:21 +0200
commit1d224431db8f22452f2fa80ccaf92f2d9d4ad014 (patch)
treee1d23add337bcb1681f3a8ad86e17309b9e18541 /ddns.php
parent3c0b5a2a170f0d3f8c161e81935422b4c28a2c7f (diff)
downloadddns-1d224431db8f22452f2fa80ccaf92f2d9d4ad014.tar.xz
get file content as string instead of array
Diffstat (limited to 'ddns.php')
-rw-r--r--ddns.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ddns.php b/ddns.php
index 1f652d4..9a765e9 100644
--- a/ddns.php
+++ b/ddns.php
@@ -239,5 +239,5 @@
print "updated ips for domain \"" . $domain . ".ddns.eckner.net\": " . implode(", ", $ips) . "\n";
- $handle = fopen('https://colocation.eckner.net/update.php?key=' . trim(file('/srv/http/vhosts/eckner.net/ddns/colocation-token')) . '&running=1&machine=' . $domain, 'r');
+ $handle = fopen('https://colocation.eckner.net/update.php?key=' . trim(file_get_contents('/srv/http/vhosts/eckner.net/ddns/colocation-token')) . '&running=1&machine=' . $domain, 'r');
fclose($handle);