Sophie

Sophie

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

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
>Funções para monitoramento de alterações em arquivos (FAM)</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="expect_popen"
HREF="function.expect-popen.html"><LINK
REL="NEXT"
TITLE="fam_cancel_monitor"
HREF="function.fam-cancel-monitor.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.expect-popen.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.fam-cancel-monitor.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.fam"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>XXXVI. Funções para monitoramento de alterações em arquivos (FAM)</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN45282"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="fam.intro"
>Introdução</A
></H1
><P
>&#13;     FAM monitora arquivos e diretórios, notificando alterações relevantes
na aplicação. Maiores informações sobre FAM estão disponíveis em
     <A
HREF="http://oss.sgi.com/projects/fam/"
TARGET="_top"
>http://oss.sgi.com/projects/fam/</A
>.
    </P
><P
>&#13;     Um script PHP deve especificar uma lista de arquivos para o monitor FAM,
     usando as funções disponíveis por essa extensão.
    </P
><P
>&#13;     O processo FAM é iniciado quando a primeira conexão de alguma aplicação está aberta. E fecha após todas as conexões feitas por ele terminarem.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Nota: </B
>Esta extensão não está
 disponível na plataforma Windows.</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="fam.requirements"
>Dependências</A
></H1
><P
>&#13;     Essa extensão usa as funções da biblioteca<A
HREF="http://oss.sgi.com/projects/fam/download.html"
TARGET="_top"
>&#13;     FAM</A
>, desenvolvida por SGI. Portanto, você deverá fazer o download e instalar a biblioteca FAM.
=======
     This extension uses the functions of the <A
HREF="http://oss.sgi.com/projects/fam/download.html"
TARGET="_top"
>&#13;     FAM</A
> library, developed by SGI. Therefore you have to download and
     install the FAM library.
&#62;&#62;&#62;&#62;&#62;&#62;&#62; 1.6
     
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="fam.installation"
>Instalação</A
></H1
><P
>&#13;  Para ter suporte ao FAM no php você deve compilar o PHP com <CODE
CLASS="option"
>--with-fam[=DIR]</CODE
> onde DIR é a localização
  do diretório contendo a biblioteca e diretório de includes.
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="fam.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="fam.resources"
>Tipos Resource</A
></H1
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="fam.resources.fam"
>Recursos FAM</A
></H2
><P
>&#13;     </P
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="fam.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
><DIV
CLASS="table"
><A
NAME="AEN45312"
></A
><P
><B
>Tabela 1. Constantes de eventos do FAM</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><THEAD
><TR
><TH
>Constantes</TH
><TH
>Descrição</TH
></TR
></THEAD
><TBODY
><TR
><TD
>&#13;       <TT
CLASS="constant"
><B
>FAMChanged</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)
      </TD
><TD
>&#13;       Algum valor que pode ser obtido com fstat(1) alterado para um arquivo
       ou diretório.
      </TD
></TR
><TR
><TD
>&#13;       <TT
CLASS="constant"
><B
>FAMDeleted</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)
      </TD
><TD
>Um arquivo que foi deletado ou renomeado.</TD
></TR
><TR
><TD
>&#13;       <TT
CLASS="constant"
><B
>FAMStartExecuting</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)
      </TD
><TD
>Um arquivo executável que acabou de ser iniciado.</TD
></TR
><TR
><TD
>&#13;       <TT
CLASS="constant"
><B
>FAMStopExecuting</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)
      </TD
><TD
>Um arquivo executável que foi executado.</TD
></TR
><TR
><TD
>&#13;       <TT
CLASS="constant"
><B
>FAMCreated</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)
      </TD
><TD
>Um arquivo foi criado no diretório.</TD
></TR
><TR
><TD
>&#13;       <TT
CLASS="constant"
><B
>FAMMoved</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)
      </TD
><TD
>Esse evento nunca ocorre.</TD
></TR
><TR
><TD
>&#13;       <TT
CLASS="constant"
><B
>FAMAcknowledge</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)
      </TD
><TD
>&#13;       Um evento em resposta para <A
HREF="function.fam-cancel-monitor.html"
><B
CLASS="function"
>fam_cancel_monitor()</B
></A
>.
      </TD
></TR
><TR
><TD
>&#13;       <TT
CLASS="constant"
><B
>FAMExists</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)
      </TD
><TD
>&#13;       Um evento acima de uma requisição para monitorar um arquivo ou diretório.
       Quando um diretório é monitorado, um evento para esse diretório e cada
       arquivo contido nele é usado.
      </TD
></TR
><TR
><TD
>&#13;       <TT
CLASS="constant"
><B
>FAMEndExist</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)
      </TD
><TD
>Evento após o último evento FAMEExists.</TD
></TR
></TBODY
></TABLE
></DIV
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Índice</B
></DT
><DT
><A
HREF="function.fam-cancel-monitor.html"
>fam_cancel_monitor</A
>&nbsp;--&nbsp;Finalizando monitoramento</DT
><DT
><A
HREF="function.fam-close.html"
>fam_close</A
>&nbsp;--&nbsp;Fecha uma conexão FAM</DT
><DT
><A
HREF="function.fam-monitor-collection.html"
>fam_monitor_collection</A
>&nbsp;--&nbsp;Monitora alterações de uma coleção de arquivos em um diretório</DT
><DT
><A
HREF="function.fam-monitor-directory.html"
>fam_monitor_directory</A
>&nbsp;--&nbsp;Monitora alterações em diretórios</DT
><DT
><A
HREF="function.fam-monitor-file.html"
>fam_monitor_file</A
>&nbsp;--&nbsp;Monitora alterações em um arquivo</DT
><DT
><A
HREF="function.fam-next-event.html"
>fam_next_event</A
>&nbsp;--&nbsp;Pega o próximo evento FAM pendente</DT
><DT
><A
HREF="function.fam-open.html"
>fam_open</A
>&nbsp;--&nbsp;Abre uma conexão para o daemon FAM</DT
><DT
><A
HREF="function.fam-pending.html"
>fam_pending</A
>&nbsp;--&nbsp;Verifica por eventos FAM pendentes</DT
><DT
><A
HREF="function.fam-resume-monitor.html"
>fam_resume_monitor</A
>&nbsp;--&nbsp;Recomeça um monitoramento suspendido</DT
><DT
><A
HREF="function.fam-suspend-monitor.html"
>fam_suspend_monitor</A
>&nbsp;--&nbsp;Suspende monitoramento temporariamente</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.expect-popen.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.fam-cancel-monitor.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>expect_popen</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>Acima</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>fam_cancel_monitor</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>