xxxxxxxxxx
<?php
// 41. is_readable()
if (is_readable("testfile.txt")) {
echo "File is readable.\n";
} else {
echo "File is not readable.\n";
}
// Output:
// File is readable.
// 42. is_writable()
if (is_writable("testfile.txt")) {
echo "File is writable.\n";
} else {
echo "File is not writable.\n";
}
// Output:
// File is writable.
// 43. is_executable()
if (is_executable("testfile.txt")) {
echo "File is executable.\n";
} else {
echo "File is not executable.\n";
}
// Output:
// File is not executable.
?>