is_writeable : is_writable « File Directory « PHP






is_writeable

 
<?php
$file_name="permissions.php";

if(is_writeable($file_name)) {
    echo ("The file $file_name is writeable.<br />");
}
else {
    echo ("The file $file_name is not writeable.<br />");
}
?>
  
  








Related examples in the same category

1.is_writable() tells you whether you can write to a file.
2.Testing for write permission