Sophie

Sophie

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

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>Gets the value of a PHP configuration option</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.gc-enabled.html">gc_enabled</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.get-current-user.html">get_current_user</a></div>
 <div class="up"><a href="ref.info.html">PHP Options/Info Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.get-cfg-var" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">get_cfg_var</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">get_cfg_var</span> &mdash; <span class="dc-title">Gets the value of a PHP configuration option</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.get-cfg-var-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>get_cfg_var</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$option</code></span>
   )</div>

  <p class="para rdfs-comment">
   Gets the value of a PHP configuration <em><code class="parameter">option</code></em>.
  </p>
  <p class="para">
   This function will not return configuration information set when the PHP
   was compiled, or read from an Apache configuration file.
  </p>
  <p class="para">
   To check whether the system is using a <a href="configuration.file.html" class="link">configuration file</a>, try retrieving the
   value of the cfg_file_path configuration setting. If this is available, a
   configuration file is being used.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.get-cfg-var-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

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

      <p class="para">
       The configuration option name.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.get-cfg-var-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the current value of the PHP configuration variable specified by
   <em><code class="parameter">option</code></em>, or <strong><code>FALSE</code></strong> if an error occurs.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.get-cfg-var-changelog">
  <h3 class="title">Changelog</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>5.3.0</td>
       <td>
         <span class="function"><strong>get_cfg_var()</strong></span> was fixed to be able 
        to return &quot;array&quot; ini options.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.get-cfg-var-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.ini-get.html" class="function" rel="rdfs-seeAlso">ini_get()</a> - Gets the value of a configuration option</span></li>
    <li class="member"> <span class="function"><a href="function.ini-get-all.html" class="function" rel="rdfs-seeAlso">ini_get_all()</a> - Gets all configuration options</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.gc-enabled.html">gc_enabled</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.get-current-user.html">get_current_user</a></div>
 <div class="up"><a href="ref.info.html">PHP Options/Info Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>