From: Nico Kaiser Date: Wed, 23 Apr 2014 11:26:24 +0000 (+0200) Subject: Use sys_get_temp_dir() instead of "/tmp", thanks ALeX. Fixes #9 X-Git-Tag: v1.0.2~1 X-Git-Url: http://git.neszt.hu/?a=commitdiff_plain;h=4b1e941a929e25c24e7c32288ed264e38acaf238;p=Dyndns%2F.git Use sys_get_temp_dir() instead of "/tmp", thanks ALeX. Fixes #9 --- diff --git a/src/Dyndns/Hosts.php b/src/Dyndns/Hosts.php index 23dc32f..d448ed7 100644 --- a/src/Dyndns/Hosts.php +++ b/src/Dyndns/Hosts.php @@ -162,7 +162,7 @@ class Hosts } // create temp file with nsupdate commands - $tempfile = tempnam('/tmp', 'Dyndns'); + $tempfile = tempnam(sys_get_temp_dir(), 'Dyndns'); $fh = @fopen($tempfile, 'w'); if (! $fh) { $this->debug('ERROR: Could not open temporary file');