Basit
Basit

Reputation: 17214

How to Install ITL extension

I want to install the PHP ITL extension so I can use it.

Do I need to compile this, and if so, how do I compile it? I need it to work for both Windows and Linux.

Upvotes: 6

Views: 484

Answers (3)

Jordan S. Jones
Jordan S. Jones

Reputation: 13903

I suggest you take a look at this section in the PHP manual. Specifically this section on compiling extensions with the phpize command.

Upvotes: 1

Pekka
Pekka

Reputation: 449783

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.

Upvotes: 4

Related Questions