is_readable() tells you whether you can read a file. : is_readable « File Directory « PHP






is_readable() tells you whether you can read a file.

 
<?
if ( is_readable( "data.txt" ) ) {
  print "data.txt is readable";
}
?>
  
  








Related examples in the same category

1.is_readable
2.is_readable() function checks the readability of both a file and a directory.