Installing PHP extensions on Windows

前端 未结 3 1445
半阙折子戏
半阙折子戏 2021-01-02 09:04

I am using a Windows XP Home Edition. I need to install a few extensions to PHP -- memcache, APC, .etc. And I would very much like to use PECL to make this happen. The probl

3条回答
  •  别那么骄傲
    2021-01-02 09:49

    The only way I can think of is: manually. Yeah, I know, but this is pretty easy comparatively.

    If you have the compiler, then you can at least compile an extension if you have the source. Otherwise you're stuck with trying to locate a binary distribution (like me).

    Here's what you do, from what I understand:

    1. Put the extension library folder under PHP's install path. On my computer this is C:\xampp\php\ext. Search in your PHP.ini for "extension_dir" to find what yours is.
    2. Edit php.ini to load the extension.
      1. Find ; Dynamic Extensions ;.
      2. Add line extension=my_lib.dll

    This should do it. Otherwise you should probably search for an in-depth guide on manual installation.

提交回复
热议问题