FastNetMon

Friday 28 September 2012

Установка PHP idn расширения на Debian 6

Все довольно просто:
apt-get install -y libidn11-dev  php5-dev
pecl install channel://pecl.php.net/idn-0.2.0
echo "extension=idn.so" > /etc/php5/conf.d/idn.ini
Проверяем работу:
php -r 'echo idn_to_ascii("фаствпс.рф"),"\n";'
xn--80ae3bgcdl.xn--p1ai

No comments :

Post a Comment

Note: only a member of this blog may post a comment.