Home > Backend Development > PHP Tutorial > Fatal error: Call to undefined function: iconv() in d:wwwPiaokouwwwrootpiaok解决方案

Fatal error: Call to undefined function: iconv() in d:wwwPiaokouwwwrootpiaok解决方案

WBOY
Release: 2016-06-13 10:31:50
Original
1144 people have browsed it

Fatal error: Call to undefined function: iconv() in d:\www\Piaokou\wwwroot\piaok
在本地测试没有问题
一把文件传到网上测试就出现下面的问题
Fatal error: Call to undefined function: iconv() in d:\www\Piaokou\wwwroot\piaokou\ly_add.php on line 232


------解决方案--------------------
iconv默认是内置的,不需要额外装,但是有的时候因为误操作可能把某些配置删除了!
在PHP。INI里看看有没有:extension=php_iconv.dll这行。如果没有加上去,然后把前面分号;去掉!重启APACHE。
------解决方案--------------------
如果php5就真是超级奇怪,可以想象的只有这个windows平台下的php5是自己编译的,并且编译时还特意把iconv排除在外

LZ上传一个phpinfo去看看iconv有没有吧?顺便看看php的版本
一两年前有些IDC号称php5实际上是需要客户再申请才开通的——就是挪到新服务器,不申请默认是放在php4的服务器上
------解决方案--------------------
在网上查查

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template