What ist phpUnac?
-----------------
This is phpUnac, a php3 binding for the unac library version 1.1.0
as found on http://www.senga.org/unac/html/.

It provides a single function (unac_string) that strips accents from
a string in all charsets known to iconv(3). Sample usage is :

unac_string("iso-8859-1", "t") -> "ete"

Install
-------

For OS that are not GNU/Linux we recommend to use the iconv library
provided by Bruno Haible <haible@clisp.cons.org> at
ftp://ftp.ilog.fr/pub/Users/haible/gnu/libiconv-1.3.tar.gz. Under
Solaris-2.6 the native iconv library is not able to convert from
ISO-8859-1 to UTF-16 directly, it must do ISO-8859-1 -> UTF-8 ->
UTF-16 and vice versa.

. Check that your apache has php3 compiled in. Create a phpinfo.php3
  page to display the status of php3 using <? phpinfo() ?>

. ./configure --with-php3-dir=DIR --with-php3-extensions=DIR
	      --with-apache-include=DIR

  --with-php3-dir=DIR
  The sources directory of php3. First run configure on them. If
  you want to mimic an installed version configuration, check the
  configure arguments with phpinfo().

  --with-php3-extensions=DIR
  The directory where the php3 shared library must be installed. It
  is shown in the output of phpinfo() as extensions_dir in the 
  configuration section. If it says 'none', add or uncomment
  extensions_dir in your php3.ini file.

  --with-apache-include=DIR
  The directory containing the apache header files. 

  Example for configuration for a native RedHat-6.2 installation with
  php-3.0.17 sources, compatible with php-3.0.14 as far as phpUnac
  is concerned:

  cd /usr/local/ports/php-3.0.17
  ./configure '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' \
              '--with-config-file-path=/etc/httpd' '--enable-safe-mode' \
              '--with-exec-dir=/usr/bin' '--with-system-regex' \
              '--disable-debug' '--with-zlib' '--enable-debugger' \
              '--enable-magic-quotes' '--enable-track-vars' '--with-xml'

  ./configure --with-php3-dir=/usr/local/ports/php-3.0.17 \
	      --with-php3-extensions=/usr/lib/apache \
	      --with-apache-include=/usr/include/apache

. make

. make install

. Add the following line in php3.ini

  extension=libphp3_unac.so

. Restart the apache server.

. Load the phpinfo.php3 page in your navigator and search for the unac
  string. The unac module must appear in the extensions list.

. Install the unac.php3 file in your html tree and load it. Success or
  failure will be self explanatory.

Authors
-------
Loic Dachary <loic@senga.org>
Andreas Hochsteger <e9625392@student.tuwien.ac.at>
