CentOS 6.3 php-mcrypt Unable to load dynamic library
Столкнулся с данной проблемой после установки модуля php-mcrypt, после установки в выводе стали появляться следующие сообщения.
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/module.so’ — /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0или
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/module.so’ — /usr/lib/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0открываем и редактируем /etc/php.d/mcrypt.ini было
; Enable mcrypt extension module extension=module.soстало
; Enable mcrypt extension module ;extension=module.so extension=mcrypt.so
PHP Fatal error: Call to undefined function imagerotate() debian
Столкнулся с проблемой отсутствие в сборке debian функции imagerotate().
Выкладываю пример решения данной проблемы на примере решения для Not Captcha
Читать далее
PHP Конвертер win-1251 в utf-8
Конвертер кодировки cp1251 в UTF8 работает 100%
function win2utf($s) { $t=""; for($i=0, $m=strlen($s); $i< $m; $i++) { $c=ord($s[$i]); if ($c<=127) {$t.=chr($c); continue; } if ($c>=192 && $c< =207) {$t.=chr(208).chr($c-48); continue; } if ($c>=208 && $c< =239) {$t.=chr(208).chr($c-48); continue; } if ($c>=240 && $c< =255) {$t.=chr(209).chr($c-112); continue; } if ($c==184) { $t.=chr(209).chr(145); continue; }; if ($c==168) { $t.=chr(208).chr(129); continue; }; } return $t; } |
Комментарии