views:

79

answers:

3

I need this library http://svn.arabeyes.org/viewvc/projects/itl/ports/php/. It is a php extension, and I want to know how I can use this.

Do I need to compile this, and if so, how can I compile it? I've never compiled anything .. I need it to work for both Windows and Linux.

+3  A: 

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.
Pekka
"because real men don't read README files" :-D
Juraj Blahunka
Hehe, I used to think that way. Fortuntately not anymore :)
Pekka
lol i have read the readme, but i dont want to compile it with php, i just want to add it on php.ini and run it like i do with other extension.. phppdf.ext you know..
Basit
The steps described in the readme show how to compile the extension in Linux. The result is a .so file you can include in your PHP.ini. As for Windows, that's a different matter - I don't know how to produce it there. Maybe asking the project maintainers for ready-made Windows binaries helps.
Pekka
+1  A: 

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

Jordan S. Jones