Page 1 of 1

iconv() problem

Posted: Mon Jun 14, 2010 1:51 am
by web_master
Hi,

I got problem with iconv()

I use this script, and its work fine on my computer, on my servermachine

Code: Select all

setlocale(LC_TIME, 'hungarian');
    $HeadDate = iconv("Latin1", "utf-8//TRANSLIT", (strftime('%Y. %B %d. (%A)', mktime('0', '0', '0', $REQUESTHEAD['programs_month'], $REQUESTHEAD['programs_day'], $REQUESTHEAD['date_year']))));
but when I put that on server (internet) I got error message:
Fatal error: Call to undefined function: iconv() in /home/...

But, I put into database new post (row), and list that post than its work fine, when I refresh 2 times the browser I get the error message. If I put another line into database, again is OK untill I dont refresh the browser 2 times.

Can You help me, what is the problem?

Thanx

T

Re: iconv() problem

Posted: Mon Jun 14, 2010 2:22 am
by amargharat
This extension is enabled by default, although it may be disabled by compiling with --without-iconv.

The optional --with-iconv-dir directive is used to specify the location of iconv on the system that PHP is being compiled on, otherwise only the default locations are scanned.

Re: iconv() problem

Posted: Mon Jun 14, 2010 2:35 am
by web_master
amargharat wrote:This extension is enabled by default, although it may be disabled by compiling with --without-iconv.

The optional --with-iconv-dir directive is used to specify the location of iconv on the system that PHP is being compiled on, otherwise only the default locations are scanned.
Ill try now phpinfo() and cant find iconv() :(

Re: iconv() problem

Posted: Mon Jun 14, 2010 5:38 am
by Phoenixheart
Then I suggest you find another host with iconv() enabled.