I want to install the PHP ITL extension so I can use it.
Do I n开发者_运维技巧eed to compile this, and if so, how do I compile it? I need it to work for both Windows and Linux.
Why not read the README?
- libitl must be already be installed along with header files.
- Download php source code and create directory $PHP_SRC_DIR/ext/itl and copy the files config.m4 itl.c php_itl.h and itl.php to it
- Run the following commands cd $PHP_SRC_DIR/ext/itl phpize ./configure --with-itl=/path/to/libitl
- The ITL functions can be enabled by compiling the php-itl extension and copying the resulting .so file to PHP's extension directory.
Check out the README: http://svn.arabeyes.org/viewvc/projects/itl/ports/php/README?revision=11087&view=markup
I suggest you take a look at this section in the PHP manual. Specifically this section on compiling extensions with the phpize
command.
精彩评论