Mega Code Archive
Creating a Function That Performs Multiple File Tests
";
return;
}
print "$file is ".( is_file( $file )?"":"not ")."a file
";
print "$file is ".( is_dir( $file )?"":"not ")."a directory
";
print "$file is ".( is_readable( $file )?"":"not ")."readable
";
print "$file is ".( is_writable( $file )?"":"not ")."writable
";
print "$file is ".( is_executable( $file )?"":"not")."executable
";
print "$file is ".( filesize($file))." bytes
";
print "$file was accessed on " . date( "D d M Y g:i A", fileatime( $file ) )."
";
print "$file was modified on " . date( "D d M Y g:i A", filemtime( $file ) )."
";
print "$file was changed on " . date( "D d M Y g:i A", filectime( $file ) )."
";
}
?>
Multiple File Tests