"; if($result) $str .= $yes; else $str .= $no; $str .= ""; return $str; } function testFile($file, $readable, $writeable, $executable) { echo ""; echo "" . $file . ""; echo "" . testResult(file_exists($file), true) . ""; echo "" . testResult(is_file($file), true, "file", "not file") . ""; echo "" . testResult(is_readable($file), $readable) . ""; echo "" . testResult(is_writeable($file), $writeable) . ""; echo "" . testResult(is_executable($file), $executable) . ""; echo "\n"; } function testLink($link, $readable, $writeable, $executable) { echo ""; echo "" . $link . ""; echo "" . testResult(file_exists($link), true) . ""; echo "" . testResult(is_link($link), true, "link", "not link") . ""; echo "" . testResult(is_readable($link), $readable) . ""; echo "" . testResult(is_writeable($link), $writeable) . ""; echo "" . testResult(is_executable($link), $executable) . ""; echo "\n"; } function testDir($dir, $readable, $writeable, $executable) { echo ""; echo "" . $dir . ""; echo "" . testResult(file_exists($dir), true) . ""; echo "" . testResult(is_dir($dir), true, "dir", "not dir") . ""; echo "" . testResult(is_readable($dir), $readable) . ""; echo "" . testResult(is_writeable($dir), $writeable) . ""; echo "" . testResult(is_executable($dir), $executable) . ""; echo "\n"; } ?>
NameExistsTypeReadableWriteableExecutable