Installing/Configuring
Содержание
Требования
To build the extension you need to install the » ICU library of version 3.6+.
You will also need the latest version of PHP. Collator is known to work well on PHP 5.1.3+ and 5.2.0+.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Поддержка языков и кодировок
- Введение
- Установка и настройка
- Предопределенные константы
- Примеры
- The Collator class
- The NumberFormatter class
- The Locale class
- The Normalizer class
- The MessageFormatter class
- The IntlCalendar class
- The IntlTimeZone class
- The IntlDateFormatter class
- The ResourceBundle class
- The Spoofchecker class
- The Transliterator class
- The IntlBreakIterator class
- The IntlRuleBasedBreakIterator class
- The IntlCodePointBreakIterator class
- The IntlPartsIterator class
- The UConverter class
- Grapheme Функции
- IDN Функции
- IntlChar
- Exception class for intl errors
- The IntlIterator class
- intl Функции
Коментарии
I have written a simple tutorial on how you can install the intl extension for PHP5 on Debian Lenny. It probably also works on anything derived from it, such as the recent Ubuntus or Linux Mint. You can find it at:
http://www.jejik.com/articles/2008/07/howto_build_and_install_the_intl_pecl_extension_for_php5_in_debian/
(This URL should be on one line of course)
To install the intl extension on a Debian Lenny system, the following commands (as `root`) worked perfectly for me:
apt-get install php-pear php5-dev dh-make-php fakeroot libicu38 libicu-dev xsltproc
pear channel-update pear.php.net
pear upgrade PEAR
pecl channel-update pecl.php.net
pear install intl
Probably the first line can be replaced with just:
apt-get install php-pear php5-dev libicu38 libicu-dev
But, you may need some of the other packages.
2 Thinks what helped me.
1. test if it works with on command line "php -i | grep intl"
if it's not correctly installed and doesn't work it will show nothing.
2. I created the file /etc/php5/conf.d/intl.ini and only put the line extension=intl.so in that file (restart apache and done)
Debian Squeeze users can install the intl extension with:
sudo apt-get install php5-intl