diff options
author | Erich Eckner <git@eckner.net> | 2022-07-20 23:20:21 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-07-20 23:20:21 +0200 |
commit | 1d224431db8f22452f2fa80ccaf92f2d9d4ad014 (patch) | |
tree | e1d23add337bcb1681f3a8ad86e17309b9e18541 | |
parent | 3c0b5a2a170f0d3f8c161e81935422b4c28a2c7f (diff) | |
download | ddns-1d224431db8f22452f2fa80ccaf92f2d9d4ad014.tar.xz |
get file content as string instead of array
-rw-r--r-- | ddns.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |