Check if file is readable

This commit is contained in:
DL6ER
2016-12-21 14:57:27 +01:00
parent abe2203acc
commit 1122cf307e
+1 -1
View File
@@ -5,7 +5,7 @@
$hosts = file_exists("/etc/hosts") ? file("/etc/hosts") : array();
function checkfile($filename) {
if(file_exists($filename))
if(file_readable($filename))
{
return $filename;
}