⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install.pecl.windows.find.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Where to find an extension?</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="install.pecl.windows.html">Installing a PHP extension</a></div> <div class="next" style="text-align: right; float: right;"><a href="install.pecl.pear.html">Compiling shared PECL extensions with the pecl command</a></div> <div class="up"><a href="install.pecl.html">Installation of PECL extensions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="install.pecl.windows.find" class="sect1">  <h2 class="title">Where to find an extension?</h2>  <p class="para">   PHP extensions are usually called &quot;php_*.dll&quot; (where the star represents the name of    the extension) and   they are located under the &quot;PHP\ext&quot; (&quot;PHP\extensions&quot; in PHP4)    folder.  </p>  <p class="para">   PHP ships with the extensions most useful to the majority of developers. They are    called &quot;core&quot; extensions.  </p>  <p class="para">   However, if you need functionnality not provided by any core extension, you may still be    able to find one in PECL. The PHP Extension Community Library (PECL) is a repository for    PHP Extensions, providing a directory of all known extensions and hosting facilities for    downloading and development of PHP extensions.  </p>  <p class="para">   If you have developped an extension for your own uses, you might want to think about hosting    it on PECL so that others with the same needs can benefit from your time. A nice side effect    is that you give them a good chance to give you feedback, (hopefully) thanks, bug reports    and even fixes/patches. Before you submit your extension for hosting on PECL, please read    http://pecl.php.net/package-new.php.  </p>  <div id="install.pecl.windows.which" class="sect2">   <h3 class="title">Which extension to download?</h3>   <p class="para">    <em class="emphasis">Many times, you will find several versions of each DLL:</em>    <ul class="itemizedlist">     <li class="listitem">      <span class="simpara">       Different version numbers (at least the first two numbers should match)      </span>     </li>     <li class="listitem">      <span class="simpara">       Different thread safety settings      </span>     </li>     <li class="listitem">      <span class="simpara">       Different processor settings (x86, 64 bits...)      </span>     </li>     <li class="listitem">      <span class="simpara">       Different debugging settings      </span>     </li>     <li class="listitem">      <span class="simpara">       <i>ect.</i>      </span>     </li>    </ul>   </p>   <p class="para">    You should keep in mind that your extension settings should match all the     settings of the PHP executable you are using. The following PHP script will     tell you <em class="emphasis">all</em> about your PHP settings:    <div class="example-contents"><pre><div class="cdata"><pre>&lt;?phpphpinfo();?&gt;</pre></div>    </pre></div>   </p>   <p class="para">    Or from the command line, run:    <div class="example-contents"><pre><div class="cdata"><pre>drive:\\path\to\php\executable\php.exe -i</pre></div>    </pre></div>   </p>  </div>  <div id="install.pecl.windows.loading" class="sect2">   <h3 class="title">Loading an extension</h3>   <p class="para">    The most common way to load a PHP extension is to include it in your <var class="filename">php.ini</var>     configuration file. Please note that many extensions are already present in your     <var class="filename">php.ini</var> and that you only need to remove the semicolon to activate them.    <div class="example-contents"><pre><div class="cdata"><pre>;extension=php_extname.dll</pre></div>    </pre></div>    <div class="example-contents"><pre><div class="cdata"><pre>extension=php_extname.dll</pre></div>    </pre></div>   </p>   <p class="para">    However, some webservers are confusing because they do not use the php.ini located alongside     your PHP executable. To find out where your actual <var class="filename">php.ini</var> resides, look     for its path in <a href="function.phpinfo.html" class="function">phpinfo()</a>:    <div class="example-contents"><pre><div class="cdata"><pre>Configuration File (php.ini) Path 	C:\WINDOWS</pre></div>    </pre></div>    <div class="example-contents"><pre><div class="cdata"><pre>Loaded Configuration File 	C:\Program Files\PHP\5.2\php.ini</pre></div>    </pre></div>   </p>   <p class="para">    After activating an extension, save <var class="filename">php.ini</var>, restart the webserver and check     <a href="function.phpinfo.html" class="function">phpinfo()</a> again. The new extension should now have its own section.   </p>  </div>  <div id="install.pecl.windows.problemsolving" class="sect2">   <h3 class="title">Resolving problems</h3>   <p class="para">    If the extension does not appear in <a href="function.phpinfo.html" class="function">phpinfo()</a>, you should check your logs to     learn where the problem comes from.   </p>   <p class="para">    If you are using PHP from the command line (CLI), the extension loading error can be read     directly on screen.   </p>   <p class="para">    If you are using PHP with a webserver, the location and format of the logs vary depending on     your software. Please read your webserver documentation to locate the logs, as it does not     have anything to do with PHP itself.   </p>   <p class="para">    Common problems are the location of the DLL, the value of the &quot;<a href="ini.core.html#ini.extension-dir" class="link">    extension_dir</a>&quot; setting inside <i>php.ini</i> and compile-time setting mismatches.   </p>   <p class="para">    If the problem lies in a compile-time setting mismatch, you probably didn&#039;t download the right DLL.     Try downloading again the extension with the right settings. Again, <a href="function.phpinfo.html" class="function">phpinfo()</a>     can be of great help.   </p>  </div> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="install.pecl.windows.html">Installing a PHP extension</a></div> <div class="next" style="text-align: right; float: right;"><a href="install.pecl.pear.html">Compiling shared PECL extensions with the pecl command</a></div> <div class="up"><a href="install.pecl.html">Installation of PECL extensions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -