<html>
<title> file_is_writable.php</title>
<body text="#000080" bgcolor="#F7F0D7">
file_exists function <br>
<?php
//file_is_writable.php
$file = "test_put.txt";
if(file_exists($file))
{
echo ("$file : exists");
}
else
{
echo ("$file does not exists");
}
echo "<br>";
if (is_writable($file)) {
echo $file." is writable";
} else {
echo $file.' is not executable';
}
?>
</body>
</html>