downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/network.constants.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/book.network.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'network.constants.php',
   
1 => 'Predefined Constants',
  ),
 
'up' =>
  array (
   
0 => 'book.network.php',
   
1 => 'Network',
  ),
 
'prev' =>
  array (
   
0 => 'network.resources.php',
   
1 => 'Resource Types',
  ),
 
'next' =>
  array (
   
0 => 'ref.network.php',
   
1 => 'Network Functions',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div>
 <h1>Predefined Constants</h1>

 <p class="simpara">
The constants below are always available as part of the PHP core.
</p>
  <table class="doctable table">
   <caption><b><a href="function.openlog.php" class="function">openlog()</a> Options</b></caption>
  
    <thead valign="middle">
     <tr valign="middle">
      <th>Constant</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody valign="middle" class="tbody">
     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_CONS</tt></b></td>
      <td align="left">
       if there is an error while sending data to the system logger,
       write directly to the system console
      </td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_NDELAY</tt></b></td>
      <td align="left">
       open the connection to the logger immediately
      </td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_ODELAY</tt></b></td>
      <td align="left">
       (default) delay opening the connection until the first
       message is logged
      </td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_NOWAIT</tt></b></td>
      <td align="left">
      </td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_PERROR</tt></b></td>
      <td align="left">print log message also to standard error</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_PID</tt></b></td>
      <td align="left">include PID with each message</td>
     </tr>

    </tbody>
  
  </table>


  <table class="doctable table">
   <caption><b><a href="function.openlog.php" class="function">openlog()</a> Facilities</b></caption>
  
    <thead valign="middle">
     <tr valign="middle">
      <th>Constant</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody valign="middle" class="tbody">
     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_AUTH</tt></b></td>
      <td align="left">
       security/authorization messages (use <b><tt class="constant">LOG_AUTHPRIV</tt></b> instead
       in systems where that constant is defined)
      </td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_AUTHPRIV</tt></b></td>
      <td align="left">security/authorization messages (private)</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_CRON</tt></b></td>
      <td align="left">clock daemon (cron and at)</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_DAEMON</tt></b></td>
      <td align="left">other system daemons</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_KERN</tt></b></td>
      <td align="left">kernel messages</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_LOCAL0 ... LOG_LOCAL7</tt></b></td>
      <td align="left">reserved for local use, these are not available in Windows</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_LPR</tt></b></td>
      <td align="left">line printer subsystem</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_MAIL</tt></b></td>
      <td align="left">mail subsystem</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_NEWS</tt></b></td>
      <td align="left">USENET news subsystem</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_SYSLOG</tt></b></td>
      <td align="left">messages generated internally by syslogd</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_USER</tt></b></td>
      <td align="left">generic user-level messages</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_UUCP</tt></b></td>
      <td align="left">UUCP subsystem</td>
     </tr>

    </tbody>
  
  </table>


  <table class="doctable table">
   <caption><b><a href="function.syslog.php" class="function">syslog()</a> Priorities (in descending order)</b></caption>
  
    <thead valign="middle">
     <tr valign="middle">
      <th>Constant</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody valign="middle" class="tbody">
     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_EMERG</tt></b></td>
      <td align="left">system is unusable</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_ALERT</tt></b></td>
      <td align="left">action must be taken immediately</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_CRIT</tt></b></td>
      <td align="left">critical conditions</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_ERR</tt></b></td>
      <td align="left">error conditions</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_WARNING</tt></b></td>
      <td align="left">warning conditions</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_NOTICE</tt></b></td>
      <td align="left">normal, but significant, condition</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_INFO</tt></b></td>
      <td align="left">informational message</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">LOG_DEBUG</tt></b></td>
      <td align="left">debug-level message</td>
     </tr>

    </tbody>
  
  </table>

  <table class="doctable table">
   <caption><b><a href="function.dns-get-record.php" class="function">dns_get_record()</a> Options</b></caption>
  
    <thead valign="middle">
     <tr valign="middle">
      <th>Constant</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody valign="middle" class="tbody">
     <tr valign="middle">
      <td align="left"><b><tt class="constant">DNS_A</tt></b></td>
      <td align="left">IPv4 Address Resource</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">DNS_MX</tt></b></td>
      <td align="left">Mail Exchanger Resource</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">DNS_CNAME</tt></b></td>
      <td align="left">Alias (Canonical Name) Resource</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">DNS_NS</tt></b></td>
      <td align="left">Authoritative Name Server Resource</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">DNS_PTR</tt></b></td>
      <td align="left">Pointer Resource</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">DNS_HINFO</tt></b></td>
      <td align="left">Host Info Resource (See IANA&#039;s
       <a href="http://www.iana.org/assignments/operating-system-names" class="link external">&raquo; <i>Operating System Names</i></a>
        for the meaning of these values)</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">DNS_SOA</tt></b></td>
      <td align="left">Start of Authority Resource</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">DNS_TXT</tt></b></td>
      <td align="left">Text Resource</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">DNS_ANY</tt></b></td>
      <td align="left">Any Resource Record.  On most systems
        this returns all resource records, however
        it should not be counted upon for critical
        uses. Try <b><tt class="constant">DNS_ALL</tt></b> instead.</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">DNS_AAAA</tt></b></td>
      <td align="left">IPv6 Address Resource</td>
     </tr>

     <tr valign="middle">
      <td align="left"><b><tt class="constant">DNS_ALL</tt></b></td>
      <td align="left">Iteratively query the name server for
        each available record type.</td>
     </tr>

    </tbody>
  
  </table>

</div>
<?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites