A File or a Directory? : is_file « File Directory « PHP






A File or a Directory?

 
<?
if ( is_file( "data.txt" ) ) {
  print "test.txt is a file!";
}
?>
  
  








Related examples in the same category

1.is_file() function returns true if file exists and is a readable/writable file.