Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 1678

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Scans the resolv.conf-formatted file</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventdnsbase.loadhosts.html">EventDnsBase::loadHosts</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventdnsbase.setoption.html">EventDnsBase::setOption</a></div>
 <div class="up"><a href="class.eventdnsbase.html">EventDnsBase</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="eventdnsbase.parseresolvconf" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventDnsBase::parseResolvConf</h1>
  <p class="verinfo">(PECL event &gt;= 1.2.6-beta)</p><p class="refpurpose"><span class="refname">EventDnsBase::parseResolvConf</span> &mdash; <span class="dc-title">Scans the resolv.conf-formatted file</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventdnsbase.parseresolvconf-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span>
    <span class="methodname"><strong>EventDnsBase::parseResolvConf</strong></span>
    ( <span class="methodparam">
    <span class="type">int</span>
     <code class="parameter">$flags</code>
   </span>
   , <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$filename</code>
   </span>
   )</div>

  <p class="para rdfs-comment">
   Scans the resolv.conf-formatted file stored in filename, and read in all
   the options from it that are listed in flags
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventdnsbase.parseresolvconf-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   <dt>

    <span class="term">
     <em><code class="parameter">flags</code></em>
    </span>
    <dd>

     <p class="para">
      Determines what information is parsed from the
      <em>resolv.conf</em>
      file. See the man page for
      <em>resolv.conf</em>
      for the format of this file.
     </p>
     <p class="para">
      The following directives are not parsed from the file:
      <em>sortlist, rotate, no-check-names, inet6, debug</em>
      .
     </p>
     <p class="para">
      If this function encounters an error, the possible return values are:
      <ul class="simplelist">
       <li class="member">
        <strong><code>1</code></strong> = failed to open file</li>
       <li class="member">
        <strong><code>2</code></strong> = failed to stat file</li>
       <li class="member">
        <strong><code>3</code></strong> = file too large</li>
       <li class="member">
        <strong><code>4</code></strong> = out of memory</li>
       <li class="member">
        <strong><code>5</code></strong> = short read from file</li>
       <li class="member">
        <strong><code>6</code></strong> = no nameservers listed in the file</li>
      </ul>
     </p>
    </dd>

   </dt>

   <dt>

    <span class="term">
     <em><code class="parameter">filename</code></em>
    </span>
    <dd>

     <p class="para">
      Path to
      <em>resolv.conf</em>
      file.
     </p>
    </dd>

   </dt>

  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventdnsbase.parseresolvconf-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> on success. Otherwise <strong><code>FALSE</code></strong>.
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventdnsbase.loadhosts.html">EventDnsBase::loadHosts</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventdnsbase.setoption.html">EventDnsBase::setOption</a></div>
 <div class="up"><a href="class.eventdnsbase.html">EventDnsBase</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>