PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Where to find an extension?> <Downloading PECL extensions
Last updated: Fri, 26 Sep 2008

view this page in

Installing a PHP extension

On Windows, you have two ways to load a PHP extension: either compile it into PHP, or load the DLL. Loading a precompiled extension is the easiest and preferred way.

To load an extension, you need to have it available as a ".dll" file on your system. All the extensions are automatically and periodically compiled by the PHP Group (see next section for the download).

To compile an extension into PHP, please refer to building from source documentation.

To compile a standalone extension (aka a DLL file), please refer to building from source documentation. If the DLL file is available neither with your PHP distribution nor in PECL, you may have to compile it before you can start using the extension.



add a note add a note User Contributed Notes
Installing a PHP extension
stuart at kaihatsu dot co dot uk
07-Feb-2008 12:22
This is the only way to get PECL extensions - using the command line installer (similar to the PEAR installer) does not work on Windows...

This does not look like its going to be fixed any time soon...

Also, you should look at http://pecl4win.php.net/ for Windows PECL extensions.
soazine at erols dot com
30-Jul-2007 04:16
When using PHP 5.2.0 within WinXP via Wampserver ( http://www.en.wampserver.com/download.php ) you will find that just simply adding a PECL-based DLL file into php.ini is not enough.  Steps you will have to do to ensure that your PECL extension(s) will be recognized are as follows:

1) Have the DLL referenced within PHP's php.ini ("extension=[php_name-of-PECL-extension].dll")
2) Have the DLL referenced within Windows' php.ini
3) Have the DLL within wampserver.ini

If any of these steps are not included, alongside the obvious web services restart, then PECL is not recognized.

Where to find an extension?> <Downloading PECL extensions
Last updated: Fri, 26 Sep 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites