Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 703d980c580707c382b4e43e25965bc5 > files > 10858

php-manual-pt_BR-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Fileinfo Functions</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="Manual do PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="Referência das Funções"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="fdf_set_version"
HREF="function.fdf-set-version.html"><LINK
REL="NEXT"
TITLE="finfo_buffer"
HREF="function.finfo-buffer.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="reference"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual do PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.fdf-set-version.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.finfo-buffer.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.fileinfo"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>XXXVIII. Fileinfo Functions</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN47380"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="fileinfo.intro"
>Introdução</A
></H1
><P
>&#13;    The functions in this module try to guess the content type
     and encoding of a file by looking for certain 
     <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>magic</I
></SPAN
> byte sequences at specific
     positions within the file. While this is not a bullet proof
     approach the heuristics used do a very good job.
   </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="fileinfo.requirements"
>Dependências</A
></H1
><P
>&#13;    <TT
CLASS="literal"
>magic_open</TT
> library is needed to build this extension.
   </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="fileinfo.installation"
>Instalação</A
></H1
><P
>&#13;  Informações para a instalação desta extensão PECL
 podem ser encontradas no manual no capitulo entitulado <A
HREF="install.pecl.html"
>Instalação
 de extensões PECL</A
>. Informações adicionais como novas versões,
 downloads, arquivos fontes, manutenções, e um Changelog, podem ser
 obtidos aqui: 
  <A
HREF="http://pecl.php.netfileinfo"
TARGET="_top"
>http://pecl.php.netfileinfo</A
>
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="fileinfo.configuration"
>Configurações em execução</A
></H1
><P
>Esta extensão não define nenhum parâmetro de configuração no <TT
CLASS="filename"
>php.ini</TT
>.</P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="fileinfo.resources"
>Tipos Resource</A
></H1
><P
>&#13;    There is one resource used in Fileinfo extension: a magic database
    descriptor returned by <A
HREF="function.finfo-open.html"
><B
CLASS="function"
>finfo_open()</B
></A
>.
   </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="fileinfo.constants"
>Constantes pré-definidas</A
></H1
><P
>&#13;As contantes abaixo são definidas por esta extensão e somente
 estarão disponíveis quando a extensão foi compilada com o PHP
 ou carregada dinamicamente durante a execução.
</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="constant"
><B
>FILEINFO_NONE</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     No special handling.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>FILEINFO_SYMLINK</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Follow symlinks.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>FILEINFO_MIME</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Return a mime string, instead of a textual description.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>FILEINFO_COMPRESS</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Decompress compressed files.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>FILEINFO_DEVICES</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Look at the contents of blocks or character special devices.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>FILEINFO_CONTINUE</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Return all matches, not just the first.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>FILEINFO_PRESERVE_ATIME</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     If possible preserve the original access time.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>FILEINFO_RAW</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Don't translate unprintable characters to a <TT
CLASS="literal"
>\ooo</TT
> octal
     representation.
    </P
></DD
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Índice</B
></DT
><DT
><A
HREF="function.finfo-buffer.html"
>finfo_buffer</A
>&nbsp;--&nbsp;Return information about a string buffer</DT
><DT
><A
HREF="function.finfo-close.html"
>finfo_close</A
>&nbsp;--&nbsp;Close fileinfo resource</DT
><DT
><A
HREF="function.finfo-file.html"
>finfo_file</A
>&nbsp;--&nbsp;Return information about a file</DT
><DT
><A
HREF="function.finfo-open.html"
>finfo_open</A
>&nbsp;--&nbsp;Create a new fileinfo resource</DT
><DT
><A
HREF="function.finfo-set-flags.html"
>finfo_set_flags</A
>&nbsp;--&nbsp;Set libmagic configuration options</DT
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.fdf-set-version.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Principal</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.finfo-buffer.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>fdf_set_version</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>Acima</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>finfo_buffer</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>