<!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>Runtime Configuration</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="internals2.counter.intro.html">Introduction</a></div> <div class="next" style="text-align: right; float: right;"><a href="internals2.counter.resources.html">Resource Types</a></div> <div class="up"><a href="internals2.counter.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="internals2.counter.ini" class="section"> <h2 class="title">Runtime Configuration</h2> <p class="simpara"> The behaviour of these functions is affected by settings in <var class="filename">php.ini</var>. </p> <table class="doctable table"> <caption><strong>Counter configuration options</strong></caption> <thead> <tr> <th>Name</th> <th>Default</th> <th>Changeable</th> <th>Changelog</th> </tr> </thead> <tbody class="tbody"> <tr> <td>counter.reset_time</td> <td>COUNTER_RESET_PER_REQUEST</td> <td>PHP_INI_ALL</td> <td class="empty"> </td> </tr> <tr> <td>counter.save_path</td> <td>""</td> <td>PHP_INI_ALL</td> <td class="empty"> </td> </tr> <tr> <td>counter.initial_value</td> <td>"0"</td> <td>PHP_INI_ALL</td> <td class="empty"> </td> </tr> </tbody> </table> <p class="simpara">For further details and definitions of the PHP_INI_* modes, see the <a href="configuration.changes.modes.html" class="xref">Where a configuration setting may be set</a>.</p> <dl> <dt id="internals2.counter.ini.reset-time"> <span class="term"> <em><code class="parameter">counter.reset_time</code></em> <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> </span> <dd> <span class="simpara"> <var class="varname"><var class="varname">counter.reset_time</var></var> tells "counter" to reset the counter used by the basic interface. It may be any of the <strong><code>COUNTER_RESET_*</code></strong> constants (see below). </span> </dd> </dt> <dt id="internals2.counter.ini.save-path"> <span class="term"> <em><code class="parameter">counter.save_path</code></em> <span class="type"><a href="language.types.string.html" class="type string">string</a></span> </span> <dd> <span class="simpara"> Tells "counter" where to save data that has to persist between invocations of PHP (i.e. any counter that has COUNTER_RESET_NEVER or COUNTER_FLAG_SAVE). A file will be created at this path, which must be readable and writable to whatever user PHP is running as. </span> </dd> </dt> <dt id="internals2.counter.ini.initial-value"> <span class="term"> <em><code class="parameter">counter.initial_value</code></em> <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> </span> <dd> <span class="simpara"> Sets the initial value of the counter used by the basic interface whenever it is reset. </span> </dd> </dt> </dl> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="internals2.counter.intro.html">Introduction</a></div> <div class="next" style="text-align: right; float: right;"><a href="internals2.counter.resources.html">Resource Types</a></div> <div class="up"><a href="internals2.counter.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>