<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Network - Funções de Rede</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="ncurses_wvline" HREF="function.ncurses-wvline.html"><LINK REL="NEXT" TITLE="checkdnsrr" HREF="function.checkdnsrr.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.ncurses-wvline.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.checkdnsrr.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.network" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >CII. Network - Funções de Rede</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN143237" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="network.intro" >Introdução</A ></H1 ><P > </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="network.requirements" >Dependências</A ></H1 ><P >Nenhuma biblioteca externa é necessária para compilar esta extensão.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="network.installation" >Instalação</A ></H1 ><P >Não há nenhuma instalação necessária para utilizar estas funções, elas fazem parte do núcleo do PHP.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="network.configuration" >Configurações em execução</A ></H1 ><P > O comportamento dessas funções podem ser modificado pelas configurações do <TT CLASS="filename" >php.ini</TT >. </P ><P > <DIV CLASS="table" ><A NAME="AEN143252" ></A ><P ><B >Tabela 1. Opções de Configuração de Rede</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Default</TH ><TH >Changeable</TH ></TR ></THEAD ><TBODY ><TR ><TD >define_syslog_variables</TD ><TD >"0"</TD ><TD >PHP_INI_ALL</TD ></TR ></TBODY ></TABLE ></DIV > Para mais detalhes e definições das constantes do PHP_INI_* veja <A HREF="function.ini-set.html" ><B CLASS="function" >ini_set()</B ></A >. </P ><P >Breve descrição das diretivas de configuração.</P ><P > <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><A NAME="ini.define-syslog-variables" ></A ><CODE CLASS="parameter" >define_syslog_variables</CODE > <A HREF="language.types.boolean.html" ><B CLASS="type" >boolean</B ></A ></DT ><DD ><P > Se define ou não as várias variáveis de syslog (e.g. $LOG_PID, $LOG_CRON, etc.). Desligá-la é uma boa idéia de sábia performance. No tempo de execução, você pode definir estas variáveis chamando <A HREF="function.define-syslog-variables.html" ><B CLASS="function" >define_syslog_variables()</B ></A >. </P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="network.resources" >Tipos Resource</A ></H1 ><P >Esta extensão não possui nenhum tipo resource.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="network.constants" >Constantes pré-definidas</A ></H1 ><P > As constantes listadas abaixo estão sempre disponíveis como parte do núcleo do PHP. </P ><DIV CLASS="table" ><A NAME="AEN143282" ></A ><P ><B >Tabela 2. <A HREF="function.openlog.html" ><B CLASS="function" >openlog()</B ></A > Options</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><THEAD ><TR ><TH >Constant</TH ><TH >Descrição</TH ></TR ></THEAD ><TBODY ><TR ><TD >LOG_CONS</TD ><TD > se há um erro enquanto enviando dados para o logger do sistema, escreverá diretamente para o console do sistema </TD ></TR ><TR ><TD >LOG_NDELAY</TD ><TD > abre a conexão para o logger imediatamente </TD ></TR ><TR ><TD >LOG_ODELAY</TD ><TD > (padrão) atrasa a abertura da conexão até a primeira mensagem está logada </TD ></TR ><TR ><TD >LOG_NOWAIT</TD ><TD > </TD ></TR ><TR ><TD >LOG_PERROR</TD ><TD >exibe a mensagem de log também para o erro padrão</TD ></TR ><TR ><TD >LOG_PID</TD ><TD >inclui PID com cada mensagem</TD ></TR ></TBODY ></TABLE ></DIV ><DIV CLASS="table" ><A NAME="AEN143309" ></A ><P ><B >Tabela 3. Facilidades <A HREF="function.openlog.html" ><B CLASS="function" >openlog()</B ></A ></B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><THEAD ><TR ><TH >Constant</TH ><TH >Descrição</TH ></TR ></THEAD ><TBODY ><TR ><TD >LOG_AUTH</TD ><TD > mensagens de segurança/autorização (usa LOG_AUTHPRIV no lugar em sistemas onde essa constante está definida) </TD ></TR ><TR ><TD >LOG_AUTHPRIV</TD ><TD >mensagens de segurança/autorização (privado)</TD ></TR ><TR ><TD >LOG_CRON</TD ><TD >clock daemon (cron and at)</TD ></TR ><TR ><TD >LOG_DAEMON</TD ><TD >outros daemons de sistema</TD ></TR ><TR ><TD >LOG_KERN</TD ><TD >mensagens de kernel</TD ></TR ><TR ><TD >LOG_LOCAL0 ... LOG_LOCAL7</TD ><TD >reservada para uso local, esta não está disponível em Windows</TD ></TR ><TR ><TD >LOG_LPR</TD ><TD >line printer subsystem</TD ></TR ><TR ><TD >LOG_MAIL</TD ><TD >subsystem de email</TD ></TR ><TR ><TD >LOG_NEWS</TD ><TD >USENET news subsystem</TD ></TR ><TR ><TD >LOG_SYSLOG</TD ><TD >mensagens geradas internamente por syslogd</TD ></TR ><TR ><TD >LOG_USER</TD ><TD >mensagens de nível-usuário genéricas</TD ></TR ><TR ><TD >LOG_UUCP</TD ><TD >UUCP subsystem</TD ></TR ></TBODY ></TABLE ></DIV ><DIV CLASS="table" ><A NAME="AEN143354" ></A ><P ><B >Tabela 4. Prioridades (em ordem decrescente) de <A HREF="function.syslog.html" ><B CLASS="function" >syslog()</B ></A ></B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><THEAD ><TR ><TH >Constant</TH ><TH >Descrição</TH ></TR ></THEAD ><TBODY ><TR ><TD >LOG_EMERG</TD ><TD >sistema está inutilizável</TD ></TR ><TR ><TD >LOG_ALERT</TD ><TD >ação deve ser tomada imediatamente</TD ></TR ><TR ><TD >LOG_CRIT</TD ><TD >condições críticas</TD ></TR ><TR ><TD >LOG_ERR</TD ><TD >condições de erro</TD ></TR ><TR ><TD >LOG_WARNING</TD ><TD >condições de alertas</TD ></TR ><TR ><TD >LOG_NOTICE</TD ><TD >condição normal, mas significativa</TD ></TR ><TR ><TD >LOG_INFO</TD ><TD >mensagem informativa</TD ></TR ><TR ><TD >LOG_DEBUG</TD ><TD >mensagem de debug-level</TD ></TR ></TBODY ></TABLE ></DIV ><DIV CLASS="table" ><A NAME="AEN143387" ></A ><P ><B >Tabela 5. Opções de <A HREF="function.dns-get-record.html" ><B CLASS="function" >dns_get_record()</B ></A ></B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><THEAD ><TR ><TH >Constant</TH ><TH >Descrição</TH ></TR ></THEAD ><TBODY ><TR ><TD >DNS_A</TD ><TD >Recurso de Endereço IPv4 </TD ></TR ><TR ><TD >DNS_MX</TD ><TD >Recurso de cambista de Email</TD ></TR ><TR ><TD >DNS_CNAME</TD ><TD >Recurso de Alias (Nome Canônico)</TD ></TR ><TR ><TD >DNS_NS</TD ><TD >Recurso de Servidor de Nome Autorizado</TD ></TR ><TR ><TD >DNS_PTR</TD ><TD >Recurso de Indicador</TD ></TR ><TR ><TD >DNS_HINFO</TD ><TD >REcurso de Host Info (Ver IANA's <A HREF="http://www.iana.org/assignments/operating-system-names" TARGET="_top" >Nomes de Sistema Operacional</A > para o significado destes valores)</TD ></TR ><TR ><TD >DNS_SOA</TD ><TD >Início do Recurso de Autoridade</TD ></TR ><TR ><TD >DNS_TXT</TD ><TD >Recurso de Texto</TD ></TR ><TR ><TD >DNS_ANY</TD ><TD >Qualquer registro de Recurso. Na maioria dos sistemas retorna todos os registros de recursos, entretadno ele não seria confiado para usos críticos. Tente DNS_ALL no lugar.</TD ></TR ><TR ><TD >DNS_AAAA</TD ><TD >Recurso de Endereço de IPv6 </TD ></TR ><TR ><TD >DNS_ALL</TD ><TD >Iterativamente examina o nome do servidor para cada tipo de gravação disponível. </TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Índice</B ></DT ><DT ><A HREF="function.checkdnsrr.html" >checkdnsrr</A > -- Check DNS records corresponding to a given Internet host name or IP address </DT ><DT ><A HREF="function.closelog.html" >closelog</A > -- Close connection to system logger</DT ><DT ><A HREF="function.debugger-off.html" >debugger_off</A > -- Disable internal PHP debugger (PHP 3)</DT ><DT ><A HREF="function.debugger-on.html" >debugger_on</A > -- Habilita o depurador (debugger) interno (PHP 3)</DT ><DT ><A HREF="function.define-syslog-variables.html" >define_syslog_variables</A > -- Initializes all syslog related constants</DT ><DT ><A HREF="function.dns-check-record.html" >dns_check_record</A > -- Synonym for <A HREF="function.checkdnsrr.html" ><B CLASS="function" >checkdnsrr()</B ></A ></DT ><DT ><A HREF="function.dns-get-mx.html" >dns_get_mx</A > -- Sinônimo para <A HREF="function.getmxrr.html" ><B CLASS="function" >getmxrr()</B ></A ></DT ><DT ><A HREF="function.dns-get-record.html" >dns_get_record</A > -- Fetch DNS Resource Records associated with a hostname </DT ><DT ><A HREF="function.fsockopen.html" >fsockopen</A > -- Open Internet or Unix domain socket connection </DT ><DT ><A HREF="function.gethostbyaddr.html" >gethostbyaddr</A > -- Obtém nome do host de Internet correspondendo ao endereçõ de IP fornecido. </DT ><DT ><A HREF="function.gethostbyname.html" >gethostbyname</A > -- Get the IP address corresponding to a given Internet host name </DT ><DT ><A HREF="function.gethostbynamel.html" >gethostbynamel</A > -- Get a list of IP addresses corresponding to a given Internet host name </DT ><DT ><A HREF="function.getmxrr.html" >getmxrr</A > -- Obtém registros MX correspondendo ao nome do host de Internet fornecido. </DT ><DT ><A HREF="function.getprotobyname.html" >getprotobyname</A > -- Get protocol number associated with protocol name </DT ><DT ><A HREF="function.getprotobynumber.html" >getprotobynumber</A > -- Get protocol name associated with protocol number </DT ><DT ><A HREF="function.getservbyname.html" >getservbyname</A > -- Get port number associated with an Internet service and protocol </DT ><DT ><A HREF="function.getservbyport.html" >getservbyport</A > -- Get Internet service which corresponds to port and protocol </DT ><DT ><A HREF="function.header.html" >header</A > -- Send a raw HTTP header</DT ><DT ><A HREF="function.headers-list.html" >headers_list</A > -- Returns a list of response headers sent (or ready to send)</DT ><DT ><A HREF="function.headers-sent.html" >headers_sent</A > -- Checks if or where headers have been sent</DT ><DT ><A HREF="function.inet-ntop.html" >inet_ntop</A > -- Converts a packed internet address to a human readable representation </DT ><DT ><A HREF="function.inet-pton.html" >inet_pton</A > -- Converts a human readable IP address to its packed in_addr representation </DT ><DT ><A HREF="function.ip2long.html" >ip2long</A > -- Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address </DT ><DT ><A HREF="function.long2ip.html" >long2ip</A > -- Converts an (IPv4) Internet network address into a string in Internet standard dotted format </DT ><DT ><A HREF="function.openlog.html" >openlog</A > -- Open connection to system logger</DT ><DT ><A HREF="function.pfsockopen.html" >pfsockopen</A > -- Open persistent Internet or Unix domain socket connection </DT ><DT ><A HREF="function.setcookie.html" >setcookie</A > -- Send a cookie</DT ><DT ><A HREF="function.setrawcookie.html" >setrawcookie</A > -- Send a cookie without urlencoding the cookie value</DT ><DT ><A HREF="function.socket-get-status.html" >socket_get_status</A > -- Sinônimo de <A HREF="function.stream-get-meta-data.html" ><B CLASS="function" >stream_get_meta_data()</B ></A ></DT ><DT ><A HREF="function.socket-set-blocking.html" >socket_set_blocking</A > -- Sinônimo de <A HREF="function.stream-set-blocking.html" ><B CLASS="function" >stream_set_blocking()</B ></A ></DT ><DT ><A HREF="function.socket-set-timeout.html" >socket_set_timeout</A > -- Sinônimo de <A HREF="function.stream-set-timeout.html" ><B CLASS="function" >stream_set_timeout()</B ></A ></DT ><DT ><A HREF="function.syslog.html" >syslog</A > -- Generate a system log message</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.ncurses-wvline.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.checkdnsrr.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >ncurses_wvline</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >checkdnsrr</TD ></TR ></TABLE ></DIV ></BODY ></HTML >