1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 18:45:57 +00:00

add experimental self-updating script

This commit is contained in:
Andrew Dolgov
2012-08-23 13:03:39 +04:00
parent 9aceda3afc
commit e3449aa1aa
2 changed files with 184 additions and 1 deletions

View File

@@ -5506,4 +5506,18 @@
return null;
}
function tmpdirname($path, $prefix) {
// Use PHP's tmpfile function to create a temporary
// directory name. Delete the file and keep the name.
$tempname = tempnam($path,$prefix);
if (!$tempname)
return false;
if (!unlink($tempname))
return false;
return $tempname;
}
?>