mirror of
https://github.com/php/doc-pt_br.git
synced 2026-03-23 22:52:12 +01:00
Update
git-svn-id: https://svn.php.net/repository/phpdoc/pt_BR/trunk@248653 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- EN-Revision: 1.2 Maintainer: narigone Status: ready -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: narigone Status: ready -->
|
||||
<sect3 xml:id="configure.options.misc" xmlns="http://docbook.org/ns/docbook">
|
||||
<title>Opções Mistas</title>
|
||||
<variablelist>
|
||||
@@ -187,6 +187,7 @@
|
||||
<listitem>
|
||||
<para>
|
||||
Compila com suporte a limite de memória.
|
||||
(não disponível desde o PHP 5.2.1 - sempre habilitado)
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@@ -198,6 +199,7 @@
|
||||
<para>
|
||||
Desabilita o wrapper da função fopen que permite
|
||||
acessar arquivos via HTTP ou FTP.
|
||||
(não disponível desde o PHP 5.2.5)
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- EN-Revision: 1.27 Maintainer: narigone Status: ready -->
|
||||
<!-- EN-Revision: 1.29 Maintainer: narigone Status: ready -->
|
||||
<chapter xml:id="features.remote-files" xmlns="http://docbook.org/ns/docbook">
|
||||
<title>Usando arquivos remotos</title>
|
||||
|
||||
<para>
|
||||
Enquanto <option>allow_url_fopen</option> estiver disponível no arquivo
|
||||
&php.ini;, você pode usar URLs <acronym>HTTP</acronym> e <acronym>FTP</acronym>
|
||||
&php.ini;, você pode usar URLs <acronym>HTTP</acronym> e <acronym>FTP</acronym>
|
||||
com a maioria das funções
|
||||
que recebem um nome de arquivo como parâmetro. Além disso, URLs podem ser
|
||||
usadas com as funções <function>include</function>,
|
||||
<function>include_once</function>, <function>require</function> e
|
||||
<function>require_once</function>.
|
||||
<function>require_once</function> (desde o PHP 5.2.0,
|
||||
<option>allow_url_include</option> precisa estar habilitado para isto).
|
||||
Veja <xref linkend="wrappers"/> para mais informações sobre protocolos
|
||||
suportados pelo PHP.
|
||||
</para>
|
||||
@@ -93,7 +94,7 @@ if (!$file) {
|
||||
fwrite ($file, $_SERVER['HTTP_USER_AGENT'] . "\n");
|
||||
fclose ($file);
|
||||
?>
|
||||
]]>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
@@ -103,9 +104,9 @@ fclose ($file);
|
||||
Você talvez tenha tido a idéia, pelo exemplo acima, de usar
|
||||
essa técnica para escrever para um arquivo de log remoto. Infelizmente
|
||||
isso não funcionaria porque a chamada a <function>fopen</function> falhará
|
||||
se o arquivo remoto já existir. Para fazer logs distrubuídos
|
||||
se o arquivo remoto já existir. Para fazer logs distrubuídos
|
||||
dessa maneira, você deve dar uma olhada na função <function>syslog</function>.
|
||||
</para>
|
||||
</para>
|
||||
</note>
|
||||
</para>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- EN-Revision: 1.20 Maintainer: narigone Status: ready -->
|
||||
<!-- EN-Revision: 1.21 Maintainer: narigone Status: ready -->
|
||||
<sect1 xml:id="install.windows.iis" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Microsoft IIS / PWS</title>
|
||||
<para>
|
||||
@@ -88,6 +88,16 @@
|
||||
saída de dados.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
O executável do PHP é distribuido como um aplicação 32bit. Se você está
|
||||
usando uma versão 64bit do Windows, você irá também precisar recriar o
|
||||
binário você mesmo, ou tenha certeza que o IIS está configurado para também
|
||||
executar extensões 32bit. Você pode normalmente torna isto usando o
|
||||
IIS Administration script como segue:
|
||||
Cscript.exe adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<HTML>
|
||||
<!-- EN-Revision: 1.5 Maintainer: narigone Status: ready -->
|
||||
<!-- EN-Revision: 1.6 Maintainer: narigone Status: ready -->
|
||||
<HEAD>
|
||||
<TITLE>Manual do PHP</TITLE>
|
||||
<META NAME="HTTP_EQUIV" CONTENT="text/html; charset=ISO-8859-1">
|
||||
@@ -21,7 +21,7 @@ COLSPAN="3" ALIGN="center"> </TD></TR></TABLE></TD></TR><TR BGCOLOR="#33336
|
||||
<div class="author">Friedhelm Betz</div>
|
||||
<div class="author">Antony Dovgal</div>
|
||||
<div class="author">Nuno Lopes</div>
|
||||
<div class="author">Philip Olson</div>
|
||||
<div class="author">Hannes Magnusson</div>
|
||||
<div class="author">Georg Richter</div>
|
||||
<div class="author">Damien Seguy</div>
|
||||
<div class="author">Jakub Vrana</div>
|
||||
|
||||
@@ -1,28 +1,58 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- EN-Revision: 1.12 Maintainer: lucasr Status: ready -->
|
||||
<refentry xml:id="function.array-pop" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>array_pop</refname>
|
||||
<refpurpose>Retira um elemento do final do array</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descrição</title>
|
||||
<methodsynopsis>
|
||||
<type>mixed</type><methodname>array_pop</methodname>
|
||||
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>array_pop</function> retira e retorna o último
|
||||
elemento de <parameter>array</parameter>, diminuindo
|
||||
<parameter>array</parameter> em um elemento.
|
||||
Se <parameter>array</parameter> estiver vazio (ou se não for um array),
|
||||
o valor &null; é retornado.
|
||||
</para>
|
||||
&array.resetspointer;
|
||||
<para>
|
||||
<example>
|
||||
<title>Exemplo de <function>array_pop</function></title>
|
||||
<programlisting role="php">
|
||||
<!-- EN-Revision: 1.14 Maintainer: felipe Status: ready --><!-- CREDITS: lucasr -->
|
||||
<refentry xml:id="function.array-pop" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>array_pop</refname>
|
||||
<refpurpose>Retira um elemento do final do array</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>mixed</type><methodname>array_pop</methodname>
|
||||
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>array_pop</function> retira e retorna o último
|
||||
elemento de <parameter>array</parameter>, diminuindo
|
||||
<parameter>array</parameter> em um elemento.
|
||||
Se <parameter>array</parameter> estiver vazio (ou se não for um array),
|
||||
o valor &null; é retornado.
|
||||
</para>
|
||||
&array.resetspointer;
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>array</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O array para obter os valores.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Retorna o último valor de <parameter>array</parameter>.
|
||||
Se <parameter>array</parameter> é vazio (ou ele não é um array),
|
||||
&null; será retornado.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Exemplo da <function>array_pop</function></title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$cesta = array("laranja", "banana", "melancia", "morango");
|
||||
@@ -43,20 +73,24 @@ Array
|
||||
[2] => melancia
|
||||
)
|
||||
]]>
|
||||
</screen>
|
||||
<para>
|
||||
e <literal>morango</literal> será passado para
|
||||
<varname>$fruta</varname>.
|
||||
</para>
|
||||
</example>
|
||||
</screen>
|
||||
<para>
|
||||
e <literal>morango</literal> será passado para
|
||||
<varname>$fruta</varname>.
|
||||
</para>
|
||||
<para>
|
||||
Veja também <function>array_push</function>,
|
||||
<function>array_shift</function>, e
|
||||
<function>array_unshift</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
Veja também <function>array_push</function>,
|
||||
<function>array_shift</function>, e
|
||||
<function>array_unshift</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- EN-Revision: 1.13 Maintainer: lucasr Status: ready -->
|
||||
<!-- EN-Revision: 1.15 Maintainer: felipe Status: ready --><!-- CREDITS: lucasr -->
|
||||
<refentry xml:id="function.array-slice" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>array_slice</refname>
|
||||
@@ -35,8 +35,8 @@
|
||||
<parameter>array</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
Note que <function>array_slice</function> irá reiniciar as chaves
|
||||
numericas pr padrão. Desde o PHP 5.0.2, você pode mudar esse funcionamento
|
||||
Note que <function>array_slice</function> irá reordenar e resetar as chaves
|
||||
numéricas por padrão. Desde o PHP 5.0.2, você pode mudar esse comportamento
|
||||
definindo <parameter>preserve_keys</parameter> como &true;.
|
||||
</para>
|
||||
<para>
|
||||
|
||||
@@ -1,29 +1,51 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- EN-Revision: 1.10 Maintainer: ae Status: ready --><!-- CREDITS: rarruda -->
|
||||
<!-- splitted from ./pt_BR/functions/filesystem.xml, last change in rev 1.5 -->
|
||||
<refentry xml:id="function.fgetc" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>fgetc</refname>
|
||||
<refpurpose>Le um caracter do ponteiro de arquivo</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descrição</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>fgetc</methodname>
|
||||
<methodparam><type>resource</type><parameter>handle</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Retorna uma string contendo somente um caracter lido do arquivo
|
||||
apontado por <parameter>handle</parameter>.
|
||||
Retorna &false; no fim do arquivo (eof).
|
||||
</para>
|
||||
&fs.validfp.all;
|
||||
&return.falseproblem;
|
||||
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>fgetc</function></title>
|
||||
<programlisting role="php">
|
||||
<!-- EN-Revision: 1.13 Maintainer: felipe Status: ready --><!-- CREDITS: ae, rarruda -->
|
||||
<refentry xml:id="function.fgetc" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>fgetc</refname>
|
||||
<refpurpose>Lê um caracter do ponteiro de arquivo</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>fgetc</methodname>
|
||||
<methodparam><type>resource</type><parameter>handle</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Obtém um caractere de um dado ponteiro de arquivo.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>handle</parameter></term>
|
||||
<listitem>
|
||||
&fs.validfp.all;
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Retorna uma string contendo um único caractere lido do ponteiro do arquivo
|
||||
passado por <parameter>handle</parameter>. Retorna &false; em EOF.
|
||||
</para>
|
||||
&return.falseproblem;
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo da <function>fgetc</function></title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$fp = fopen('algumarquivo.txt', 'r');
|
||||
@@ -38,16 +60,27 @@ while (false !== ($char = fgetc($fp))) {
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
|
||||
¬e.bin-safe;
|
||||
|
||||
<para>
|
||||
Veja também <function>fread</function>, <function>fopen</function>,
|
||||
<function>popen</function>, <function>fsockopen</function> e
|
||||
<function>fgets</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
¬e.bin-safe;
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>fread</function></member>
|
||||
<member><function>fopen</function></member>
|
||||
<member><function>popen</function></member>
|
||||
<member><function>fsockopen</function></member>
|
||||
<member><function>fgets</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,33 +1,45 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- EN-Revision: 1.2 Maintainer: fernandoc Status: ready -->
|
||||
<!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.20 -->
|
||||
<refentry xml:id="function.ob-clean" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>ob_clean</refname>
|
||||
<refpurpose>
|
||||
Limpa (apaga) o buffer de saída
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descrição</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>ob_clean</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Esta função descarta o conteúdo do buffer de saída.
|
||||
</para>
|
||||
<para>
|
||||
Esta função não destroi o buffer de saída como a função
|
||||
<function>ob_end_clean</function> faz.
|
||||
</para>
|
||||
<para>
|
||||
Veja também <function>ob_flush</function>,
|
||||
<function>ob_end_flush</function> e
|
||||
<function>ob_end_clean</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- EN-Revision: 1.5 Maintainer: fernandoc Status: ready -->
|
||||
<refentry xml:id="function.ob-clean" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>ob_clean</refname>
|
||||
<refpurpose>Limpa (apaga) o buffer de saída</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>ob_clean</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Esta função descarta o conteúdo do buffer de saída.
|
||||
</para>
|
||||
<para>
|
||||
Esta função não destroi o buffer de saída como a função
|
||||
<function>ob_end_clean</function> faz.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.void;
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>ob_flush</function></member>
|
||||
<member><function>ob_end_flush</function></member>
|
||||
<member><function>ob_end_clean</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,40 +1,43 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- EN-Revision: 1.3 Maintainer: fernandoc Status: ready -->
|
||||
<!-- EN-Revision: 1.10 Maintainer: fernandoc Status: ready -->
|
||||
<section xml:id="outcontrol.configuration" xmlns="http://docbook.org/ns/docbook">
|
||||
&reftitle.runtime;
|
||||
&extension.runtime;
|
||||
<para>
|
||||
<table>
|
||||
<title>Opções de configuração de controle de saída</title>
|
||||
<tgroup cols="3">
|
||||
<tgroup cols="4">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Nome</entry>
|
||||
<entry>Padrão</entry>
|
||||
<entry>Modificavel</entry>
|
||||
<entry>Changelog</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>output_buffering</entry>
|
||||
<entry>"0"</entry>
|
||||
<entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>output_handler</entry>
|
||||
<entry>NULL</entry>
|
||||
<entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>Disponível desde o PHP 4.0.4.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>implicit_flush</entry>
|
||||
<entry>"0"</entry>
|
||||
<entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>PHP_INI_PERDIR no PHP <= 4.2.3.</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
Para maiores detalhes e definiç~es das constantes do PHP_INI_* veja
|
||||
<function>ini_set</function>.
|
||||
&ini.php.constants;
|
||||
</para>
|
||||
|
||||
&ini.descriptions.title;
|
||||
@@ -50,8 +53,9 @@
|
||||
<para>
|
||||
Você pode ativar o buffer de saída para todos os arquivos definindo esta dretiva
|
||||
para 'On'. Se você quiser limitar o tamanho do buffer para um certo limite -
|
||||
você pode usar um número máximo de bytes ao invés de 'On', como valor
|
||||
você pode usar um número máximo de bytes ao invés de 'On', como valor
|
||||
para esta diretiva (ex., output_buffering=4096).
|
||||
No PHP 4.3.5, esta diretiva é sempre Off em PHP-CLI.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@@ -65,18 +69,24 @@
|
||||
<para>
|
||||
Você pode redirecionar toda a saída do seu script para uma função. Por exemplo,
|
||||
se você definir set output_handler para
|
||||
<function>mb_output_handler</function>, a codificação dos caracteres será
|
||||
<function>mb_output_handler</function>, a codificação dos caracteres será
|
||||
transparentemente convertida para a codificação especificada. Definindo qualquer função
|
||||
para gerenciar a saída ativa o buffer de saída.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Você não pode usar <function>mb_output_handler</function> com
|
||||
<function>ob_inconv_handler</function> e você não pode usar
|
||||
<function>ob_iconv_handler</function> e você não pode usar
|
||||
<function>ob_gzhandler</function> e
|
||||
<link linkend="ini.zlib.output-compression">zlib.output_compression</link>.
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
Somente funções nativas podem ser usadas com esta diretiva. Para funções
|
||||
definidas pelo usuário, use <function>ob_start</function>.
|
||||
</para>
|
||||
</note>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@@ -91,12 +101,12 @@
|
||||
camada de saída descarregar a si mesma automaticamente a cada bloco de saída.
|
||||
Isto é equivalente a utilizar a função do <literal>PHP</literal>
|
||||
<function>flush</function> a cada
|
||||
<function>print</function> ou <function>echo</function> e a cada bloco de
|
||||
<function>print</function> ou <function>echo</function> e a cada bloco de
|
||||
<literal>HTML</literal>.
|
||||
</para>
|
||||
<para>
|
||||
Quando estiver usando o <literal>PHP</literal> em um ambiente web, ativando esta opção
|
||||
tem uma séria implicação na performance e geralmente é recomendada apenas para
|
||||
Quando estiver usando o PHP em um ambiente web, ativando esta opção
|
||||
tem uma séria implicação na performance e geralmente é recomendada apenas para
|
||||
debug. O valor padrão é &true; quando operando sobre <literal>CLI SAPI</literal>.
|
||||
</para>
|
||||
<para>
|
||||
@@ -128,4 +138,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- EN-Revision: 1.1 Maintainer: fernandoc Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: fernandoc Status: ready -->
|
||||
<section xml:id="readline.installation" xmlns="http://docbook.org/ns/docbook">
|
||||
&reftitle.install;
|
||||
<para>
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- EN-Revision: 1.11 Maintainer: fernandoc Status: ready -->
|
||||
<!-- CREDITS: surfmax -->
|
||||
<!-- splitted from ./en/functions/session.xml, last change in rev 1.2 -->
|
||||
<!-- EN-Revision: 1.13 Maintainer: fernandoc Status: ready --><!-- CREDITS: surfmax -->
|
||||
<refentry xml:id="function.session-id" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>session_id</refname>
|
||||
|
||||
@@ -1,86 +1,87 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- EN-Revision: 1.6 Maintainer: fernandoc Status: ready -->
|
||||
<refentry xml:id="function.session-regenerate-id" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>session_regenerate_id</refname>
|
||||
<refpurpose>
|
||||
Atualiza o id da sessão atual com um novo gerado
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>session_regenerate_id</methodname>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>delete_old_session</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>session_regenerate_id</function> irá substituiro id
|
||||
da seção atual com um novo, e mantém a informação da sessão atual.
|
||||
</para>
|
||||
<!-- EN-Revision: 1.8 Maintainer: fernandoc Status: ready -->
|
||||
<refentry xml:id="function.session-regenerate-id" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>session_regenerate_id</refname>
|
||||
<refpurpose>
|
||||
Atualiza o id da sessão atual com um novo gerado
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>session_regenerate_id</methodname>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>delete_old_session</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>session_regenerate_id</function> irá substituiro id
|
||||
da seção atual com um novo, e mantém a informação da sessão atual.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>delete_old_session</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Quando excluir o arquivo associado a sessão anterior ou não. O padrão é
|
||||
&false;.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>delete_old_session</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Quando excluir o arquivo associado a sessão anterior ou não. O padrão é
|
||||
&false;.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>4.3.3</entry>
|
||||
<entry>
|
||||
Desde então, se os cookies de sessão estão ativos, o uso de
|
||||
<function>session_regenerate_id</function> irá também enviar um novo
|
||||
cookie de sessão com o novo id de sessão.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>5.1.0</entry>
|
||||
<entry>
|
||||
Adicionado o parâmetro <parameter>delete_old_session</parameter>.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>4.3.3</entry>
|
||||
<entry>
|
||||
Desde então, se os cookies de sessão estão ativos, o uso de
|
||||
<function>session_regenerate_id</function> irá também enviar um novo
|
||||
cookie de sessão com o novo id de sessão.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>5.1.0</entry>
|
||||
<entry>
|
||||
Adicionado o parâmetro <parameter>delete_old_session</parameter>.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Exemplo <function>session_regenerate_id</function></title>
|
||||
<programlisting role="php">
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Exemplo <function>session_regenerate_id</function></title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
session_start();
|
||||
@@ -97,21 +98,22 @@ echo "New Session: $new_sessionid<br />";
|
||||
print_r($_SESSION);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>session_id</function></member>
|
||||
<member><function>session_start</function></member>
|
||||
<member><function>session_name</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>session_id</function></member>
|
||||
<member><function>session_start</function></member>
|
||||
<member><function>session_name</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: felipe Status: ready -->
|
||||
<section xml:id="tcpwrap.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.install;
|
||||
<para>
|
||||
Tcpwrap is currently available through PECL
|
||||
Tcpwrap está atualmente disponível através do PECL
|
||||
<link xlink:href="&url.pecl.package;tcpwrap">&url.pecl.package;tcpwrap</link>.
|
||||
</para>
|
||||
<para>
|
||||
If <link xlink:href="&url.php.pear;">PEAR</link> is available on your *nix-like
|
||||
system you can use the pear installer to install the tcpwrap extension, by the
|
||||
following command: <command>pear -v install tcpwrap</command>.
|
||||
Se <link xlink:href="&url.php.pear;">PEAR</link> está disponível em seu sistema
|
||||
*nix-like você pode usar o instalador pear para instalar a extensão tcpwrap,
|
||||
pelo seguinte comando: <command>pear -v install tcpwrap</command>.
|
||||
</para>
|
||||
<para>
|
||||
You can always download the tar.gz package and install tcpwrap by hand:
|
||||
Você pode sempre fazer download do pacote tar.gz e instalar a tcpwrap manualmente:
|
||||
<example>
|
||||
<title>tcpwrap install by hand</title>
|
||||
<title>Instalando tcpwrap manualmente</title>
|
||||
<programlisting role="shell">
|
||||
<![CDATA[
|
||||
gunzip tcpwrap-xxx.tgz
|
||||
|
||||
Reference in New Issue
Block a user