Is the file writable : File Property : File Directory PHP Source Code


PHP Source Code » File Directory » File Property »

 

Is the file writable



<html>
<head>
<title>Is the file writable: is_writable()</title>
</head>
<body>
<?php
$file = "test.txt";
outputFileTestInfo$file );
function outputFileTestInfo$f ){
   if ! file_exists$f ) ){
       print "$f does not exist<BR>";
      return;
   }
   print "$f is ".(is_writable$f )?"":"not ")."writable<br>";
}
?>
</body>
</html>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo File Directory
» File Property