iconv() problem

Discussion in 'PHP' started by web_master_tivi, Jun 13, 2010.

  1. #1
    Hi,

    I got problem with iconv()

    I use this script, and its work fine on my computer, on my servermachine
    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']))));
    PHP:
    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
     
    web_master_tivi, Jun 13, 2010 IP
  2. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Does your host have iconv support enabled? It should be by default, but they may have disabled this, though i can think of no good reason to do so.

    If you arent sure, you can check by using the phpfino() function.
     
    lukeg32, Jun 14, 2010 IP
  3. web_master_tivi

    web_master_tivi Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    OK, I try phpinfo() and don't find iconv() :( It's looks like to must to write mail to server administrator - thanks.
     
    web_master_tivi, Jun 14, 2010 IP