Sophie

Sophie

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

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
>dbmopen</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="DBM Functions [deprecated]"
HREF="ref.dbm.html"><LINK
REL="PREVIOUS"
TITLE="dbmnextkey"
HREF="function.dbmnextkey.html"><LINK
REL="NEXT"
TITLE="dbmreplace"
HREF="function.dbmreplace.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
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.dbmnextkey.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.dbmreplace.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.dbmopen"
></A
>dbmopen</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN31870"
></A
><P
>    (PHP 3, PHP 4, PECL)</P
>dbmopen&nbsp;--&nbsp;Opens a DBM database</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN31873"
></A
><H2
>Descrição</H2
>resource <B
CLASS="methodname"
>dbmopen</B
> ( string filename, string flags )<BR
></BR
><P
>&#13;   Opens the specified DBM database in the given mode.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN31885"
></A
><H2
>Parâmetros</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>filename</CODE
></DT
><DD
><P
>&#13;       The full-path filename of the DBM file to be opened
      </P
></DD
><DT
><CODE
CLASS="parameter"
>flags</CODE
></DT
><DD
><P
>&#13;       The file open mode which is one of <TT
CLASS="literal"
>r</TT
>,
       <TT
CLASS="literal"
>n</TT
>, <TT
CLASS="literal"
>c</TT
> or <TT
CLASS="literal"
>w</TT
>,
       for read-only, new (implies read-write, and most likely will truncate
       an already-existing database of the same name), create (implies 
       read-write, and will not truncate an already-existing database of the
       same name) and read-write respectively.
      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN31903"
></A
><H2
>Valores de retornado</H2
><P
>&#13;   Returns an identifier to be passed to the other DBM functions on
   success, or <TT
CLASS="constant"
><B
>FALSE</B
></TT
> on failure.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN31907"
></A
><H2
>Notas</H2
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Nota: </B
>
    If NDBM support is used, NDBM will actually create 
    <TT
CLASS="filename"
>filename.dir</TT
> and <TT
CLASS="filename"
>filename.pag</TT
>
    files. GDBM only uses one file, as does the internal flat-file support,
    and Berkeley DB creates a <TT
CLASS="filename"
>filename.db</TT
> file.
   </P
><P
>&#13;    Note that PHP does its own file locking in addition to any file locking
    that may be done by the DBM library itself. PHP does not delete the
    <TT
CLASS="filename"
>.lck</TT
> files it creates. It uses these files simply as
    fixed inodes on which to do the file locking. For more information on DBM
    files, see your Unix man pages, or obtain
    <A
HREF="ftp://ftp.gnu.org/pub/gnu/gdbm/"
TARGET="_top"
>GNU's GDBM</A
>.
   </P
></BLOCKQUOTE
></DIV
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Nota: </B
>Quando o <A
HREF="features.safe-mode.html"
>safe-mode</A
> está ativo, o PHP verifica se
 o(s) arquivo(s) e/ou diretório(s) que serão afetados por esta operação tem o mesmo UID (proprietário)
 do script que está sendo executado.</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN31920"
></A
><H2
>Veja também</H2
><P
>&#13;   <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
><A
HREF="function.dbmclose.html"
><B
CLASS="function"
>dbmclose()</B
></A
></TD
></TR
></TBODY
></TABLE
><P
></P
>
  </P
></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.dbmnextkey.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.dbmreplace.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>dbmnextkey</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.dbm.html"
ACCESSKEY="U"
>Acima</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>dbmreplace</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>