Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 3113

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>Network Functions</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Function Reference"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="muscat_setup"
HREF="function.muscat-setup.html"><LINK
REL="NEXT"
TITLE="checkdnsrr"
HREF="function.checkdnsrr.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></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"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.muscat-setup.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.checkdnsrr.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.network"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>LXVI. Network Functions</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN60109"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="network.intro"
></A
>Introduction</H1
><P
>&#13;    
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="network.requirements"
></A
>Requirements</H1
><P
>No external libraries are needed to build this extension.</P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="network.installation"
></A
>Installation</H1
><P
>There is no installation needed to use these
functions; they are part of the PHP core.</P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="network.configuration"
></A
>Runtime Configuration</H1
><P
>&#13;The behaviour of these functions is affected by settings in <TT
CLASS="filename"
>php.ini</TT
>.
</P
><P
>&#13;  <DIV
CLASS="table"
><A
NAME="AEN60124"
></A
><P
><B
>Table 1. Network Configuration Options</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Name</TH
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Default</TH
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Changeable</TH
></TR
></THEAD
><TBODY
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>define_syslog_variables</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>"0"</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>PHP_INI_ALL</TD
></TR
></TBODY
></TABLE
></DIV
>
 For further details and definition of the PHP_INI_* constants see
 <A
HREF="function.ini-set.html"
><B
CLASS="function"
>ini_set()</B
></A
>.
 </P
><P
>&#13; Here is a short explanation of the configuration directives.
 <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><A
NAME="ini.define-syslog-variables"
></A
><TT
CLASS="parameter"
><I
>define_syslog_variables</I
></TT
>
   <A
HREF="language.types.boolean.html"
><B
CLASS="type"
>boolean</B
></A
></DT
><DD
><P
>&#13;     Whether or not to define the various syslog variables (e.g. $LOG_PID,
     $LOG_CRON, etc.). Turning it off is a good idea performance-wise. At
     runtime, you can define these variables by calling
     <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"
></A
>Resource Types</H1
><P
>This extension has no resource types defined.</P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="network.constants"
></A
>Predefined Constants</H1
><P
>&#13;The constants below are always available as part of the PHP core.
</P
><DIV
CLASS="table"
><A
NAME="AEN60153"
></A
><P
><B
>Table 2. <A
HREF="function.openlog.html"
><B
CLASS="function"
>openlog()</B
></A
> Options</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Constant</TH
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>LOG_CONS</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>&#13;       if there is an error while sending data to the system logger,
       write directly to the system console
      </TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>LOG_NDELAY</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>&#13;       open the connection to the logger immediately 
      </TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>LOG_ODELAY</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>&#13;       (default) delay opening the connection until the first
       message is logged
      </TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>LOG_PERROR</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>print log message also to standard error</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>LOG_PID</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>include PID with each message</TD
></TR
></TBODY
></TABLE
></DIV
><DIV
CLASS="table"
><A
NAME="AEN60177"
></A
><P
><B
>Table 3. <A
HREF="function.syslog.html"
><B
CLASS="function"
>syslog()</B
></A
> Priorities (in descending order)</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Constant</TH
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>LOG_EMERG</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>system is unusable</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>LOG_ALERT</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>action must be taken immediately</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>LOG_CRIT</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>critical conditions</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>LOG_ERR</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>error conditions</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>LOG_WARNING</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>warning conditions</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>LOG_NOTICE</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>normal, but significant, condition</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>LOG_INFO</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>informational message</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>LOG_DEBUG</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>debug-level message</TD
></TR
></TBODY
></TABLE
></DIV
><DIV
CLASS="table"
><A
NAME="AEN60210"
></A
><P
><B
>Table 4. <A
HREF="function.dns-get-record.html"
><B
CLASS="function"
>dns_get_record()</B
></A
> Options</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Constant</TH
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>DNS_A</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>IPv4 Address Resource</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>DNS_MX</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Mail Exchanger Resource</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>DNS_CNAME</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Alias (Canonical Name) Resource</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>DNS_NS</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Authoritative Name Server Resource</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>DNS_PTR</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Pointer Resource</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>DNS_HINFO</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Host Info Resource (See 
        <A
HREF="http://www.ietf.org/rfc/rfc1010.txt"
TARGET="_top"
>RFC 1010</A
>
        for the meaning of these values)</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>DNS_SOA</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Start of Authority Resource</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>DNS_TXT</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Text Resource</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>DNS_ANY</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Any Resource Record.  On most systems
        this returns all resource records, however
        it should not be counted upon for critical
	uses.  Try DNS_ALL instead.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>DNS_AAAA</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>IPv6 Address Resource</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>DNS_ALL</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Itteratively query the name server for
        each available record type.</TD
></TR
></TBODY
></TABLE
></DIV
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="function.checkdnsrr.html"
>checkdnsrr</A
>&nbsp;--&nbsp;
     Check DNS records corresponding to a given Internet host name or
     IP address
    </DT
><DT
><A
HREF="function.closelog.html"
>closelog</A
>&nbsp;--&nbsp;Close connection to system logger</DT
><DT
><A
HREF="function.debugger-off.html"
>debugger_off</A
>&nbsp;--&nbsp;Disable internal PHP debugger (PHP 3)</DT
><DT
><A
HREF="function.debugger-on.html"
>debugger_on</A
>&nbsp;--&nbsp;Enable internal PHP debugger (PHP 3)</DT
><DT
><A
HREF="function.define-syslog-variables.html"
>define_syslog_variables</A
>&nbsp;--&nbsp;Initializes all syslog related constants</DT
><DT
><A
HREF="function.dns-check-record.html"
>dns_check_record</A
>&nbsp;--&nbsp;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
>&nbsp;--&nbsp;Synonym for <A
HREF="function.getmxrr.html"
><B
CLASS="function"
>getmxrr()</B
></A
></DT
><DT
><A
HREF="function.dns-get-record.html"
>dns_get_record</A
>&nbsp;--&nbsp;
      Fetch DNS Resource Records associated with a hostname
     </DT
><DT
><A
HREF="function.fsockopen.html"
>fsockopen</A
>&nbsp;--&nbsp;
     Open Internet or Unix domain socket connection
    </DT
><DT
><A
HREF="function.gethostbyaddr.html"
>gethostbyaddr</A
>&nbsp;--&nbsp;
     Get the Internet host name corresponding to a given IP address
    </DT
><DT
><A
HREF="function.gethostbyname.html"
>gethostbyname</A
>&nbsp;--&nbsp;
     Get the IP address corresponding to a given Internet host name
    </DT
><DT
><A
HREF="function.gethostbynamel.html"
>gethostbynamel</A
>&nbsp;--&nbsp;
     Get a list of IP addresses corresponding to a given Internet host
     name
    </DT
><DT
><A
HREF="function.getmxrr.html"
>getmxrr</A
>&nbsp;--&nbsp;
     Get MX records corresponding to a given Internet host name
    </DT
><DT
><A
HREF="function.getprotobyname.html"
>getprotobyname</A
>&nbsp;--&nbsp;
     Get protocol number associated with protocol name
    </DT
><DT
><A
HREF="function.getprotobynumber.html"
>getprotobynumber</A
>&nbsp;--&nbsp;
     Get protocol name associated with protocol number
    </DT
><DT
><A
HREF="function.getservbyname.html"
>getservbyname</A
>&nbsp;--&nbsp;
     Get port number associated with an Internet service and protocol
    </DT
><DT
><A
HREF="function.getservbyport.html"
>getservbyport</A
>&nbsp;--&nbsp;
     Get Internet service which corresponds to port and protocol
    </DT
><DT
><A
HREF="function.ip2long.html"
>ip2long</A
>&nbsp;--&nbsp;
      Converts a string containing an (IPv4) Internet Protocol dotted address
      into a proper address.
    </DT
><DT
><A
HREF="function.long2ip.html"
>long2ip</A
>&nbsp;--&nbsp;
      Converts an (IPv4) Internet network address into a string in Internet
      standard dotted format 
    </DT
><DT
><A
HREF="function.openlog.html"
>openlog</A
>&nbsp;--&nbsp;Open connection to system logger</DT
><DT
><A
HREF="function.pfsockopen.html"
>pfsockopen</A
>&nbsp;--&nbsp;
     Open persistent Internet or Unix domain socket connection
    </DT
><DT
><A
HREF="function.socket-get-status.html"
>socket_get_status</A
>&nbsp;--&nbsp;
     Alias of <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
>&nbsp;--&nbsp;Alias for <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
>&nbsp;--&nbsp;Alias for <A
HREF="function.stream-set-timeout.html"
><B
CLASS="function"
>stream_set_timeout()</B
></A
></DT
><DT
><A
HREF="function.syslog.html"
>syslog</A
>&nbsp;--&nbsp;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.muscat-setup.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.checkdnsrr.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>muscat_setup</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>checkdnsrr</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>