update : 2015.11.03
php.shukuma.com검색:
|
finfo_openfinfo::__construct(PHP >= 5.3.0, PECL fileinfo >= 0.1.0) finfo_open -- finfo::__construct — Create a new fileinfo resource 설명절차식 형식
resource finfo_open
([ int
$options = FILEINFO_NONE
[, string $magic_file = NULL
]] )객체 기반 형식 (constructor): This function opens a magic database and returns its resource. 인수
반환값
(Procedural style only)
Returns a magic database resource on success실패 시 주의Warning
The expected magic database format changed in PHP 5.3.11 and 5.4.1. Due to this, the internal magic database was upgraded. This mostly effects code where an external magic database is used: reading an older magic file will now fail. Also, some textual representations of the mime types has changed, for instance for PHP would be "PHP script, ASCII text" instead of "PHP script text" returned.
예제Example #1 객체 기반 형식
<?php Example #2 절차식 형식
<?php 위 예제의 출력: text/plain; charset=us-ascii |