<!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>Setup</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mysqlnd-qc.quickstart.concepts.html">Architecture and Concepts</a></div> <div class="next" style="text-align: right; float: right;"><a href="mysqlnd-qc.quickstart.caching.html">Caching queries</a></div> <div class="up"><a href="mysqlnd-qc.quickstart.html">Quickstart and Examples</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="mysqlnd-qc.quickstart.configuration" class="section"> <h2 class="title">Setup</h2> <p class="para"> The plugin is implemented as a PHP extension. See also the <a href="mysqlnd-qc.installation.html" class="link">installation instructions</a> to install the <a href="http://pecl.php.net/package/mysqlnd_qc" class="link external">» PECL/mysqlnd_qc</a> extension. </p> <p class="para"> Compile or configure the PHP MySQL extension (<a href="ref.mysqli.html" class="link">mysqli</a>, <a href="ref.pdo-mysql.html" class="link">PDO_MYSQL</a>, <a href="ref.mysql.html" class="link">mysql</a>) that you plan to use with support for the <a href="book.mysqlnd.html" class="link">mysqlnd</a> library. PECL/mysqlnd_qc is a plugin for the mysqlnd library. To use the plugin with any of the existing PHP MySQL extensions (APIs), the extension has to use the mysqlnd library. </p> <p class="para"> Then, load the extension into PHP and activate the plugin in the PHP configuration file using the PHP configuration directive named <a href="mysqlnd-qc.configuration.html#ini.mysqlnd-qc.enable-qc" class="link">mysqlnd_qc.enable_qc</a>. </p> <p class="para"> <div class="example" id="example-1845"> <p><strong>Example #1 Enabling the plugin (php.ini)</strong></p> <div class="example-contents"> <div class="inicode"><pre class="inicode">mysqlnd_qc.enable_qc=1</pre> </div> </div> </div> </p> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mysqlnd-qc.quickstart.concepts.html">Architecture and Concepts</a></div> <div class="next" style="text-align: right; float: right;"><a href="mysqlnd-qc.quickstart.caching.html">Caching queries</a></div> <div class="up"><a href="mysqlnd-qc.quickstart.html">Quickstart and Examples</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>