PHP - Fatal error: Call to undefined function utf8_encode()
Раздел: PHP
Написано: 2.05.2010
Автор: Antonio
Просмотров темы: 828 раз
Подписаться на RSS
Проблема: ошибка [error] PHP Fatal error: Call to undefined function utf8_encode()
ваш PHP собран (установлен) без поддержки модуля XML,
Решение: установите модуль XML
[X] XML XML support
список установленных модулей можно посмотреть командой в консоли php -m
First, I checked where PHP utf8_encode() comes from. In the PHP Manual I found out that utf8_encode() is natively an item from XML Parser Functions set. This finding pointed my attention to the PHP installation on machine of my customer running on FreeBSD. I let system search for the file xml.so to find out whether PHP was compiled with XML support. In /user/local/lib/php/20050922/ I found what I was looking for – xml shared object was there and ready to use… so, why it doesn’t work? Consequently, I took a look into /usr/local/etc/php/extensions.ini file to check whether xml extension is loaded. And… was NOT on the list of extensions! So, I added following line to the extensions.ini file to load xml extension with utf8_encode() function into the PHP:
extension=xml.so
Сообщение отредактировано palanca 07-06-2011 15:34 ...