Add mime type get to the Check\File class

This commit is contained in:
Clemens Schwaighofer
2024-01-11 16:15:08 +09:00
parent 10ed5b3ea0
commit ec9275d8d3
3 changed files with 76 additions and 4 deletions

View File

@@ -37,6 +37,7 @@ $file = '/some/path/to/some/file.txt';
print "GETFILENAMEENDING: $file: " . File::getFilenameEnding($file) . "<br>";
$file = getcwd() . DIRECTORY_SEPARATOR . 'class_test.file.php';
print "GETLINESFROMFILE: $file: " . File::getLinesFromFile($file) . "<br>";
print "MIMEINFO: $file: " . File::getMimeType($file) . "<br>";
print "</body></html>";