Javascript debugger
Website design
↑
finfo {
string buffer(string string,
int options,
resource context);
}
This function is used to get information about binary data in a string.
Fileinfo resource returned by finfo_open().
Content of a file to be checked.
One or disjunction of more Fileinfo constants.
<?php
$finfo = new finfo(FILEINFO_MIME);
echo $finfo->buffer($_POST["script"]) . "\n";
?>
The above example will output something similar to:
application/x-sh
finfo_file() |