Help me configurating LC_ALL

rvila_at_inictel.gob.pe
Date: 03/31/05

  • Next message: Timothy Murphy: "Re: Wireless connectivity - was resolved, then unresolved, now RESOLVED!!!"
    Date: Wed, 30 Mar 2005 18:05:01 -0500
    To: fedora-list@redhat.com
    
    

    Good afternoon, my name is Ricaro Vila, and I want that you please help me with
    php. the trouble is:

    i have one page info.php and your code is :

    <?php
    phpinfo();

    echo getenv("LANG")."<br>";

    $info=nl_langinfo(CODESET);
    echo $info."<br>";

    setlocale (LC_ALL,'es_PE');
    $info2=n<l_langinfo(CODESET);
    echo $info2."<br>";
    echo getenv("LANG")."<br>";
    ?>

    well when I execute this in my browser, the page show me information about php,
    but in the headers enviroment exist a variable called LANG and this have a
    value C.
    Also in tHe page, $info is printed how ANSI_X3.4-1968 and $info2 how
    ISO-8859-1,
    because i use the function setlocale() and getenv("LANG") is printed how C.
    Please help me I don't want use the funtion setlocale(); i want know how
    configure the varible lang in php or known what make setlocale internaly.

    Other thing more is that i open the console and execute el command php -i and
    the result is different a my page info.php. In console(terminal) the variable
    lang is how iso-8859-1 but when execute info.php the variable lang is C

    I think that the problem is with entorno X, but i don't secure.

    I hope you understand me, but my english is very bad
    Thank a lot for all the help that you can give me
    Sincerely
    Ricardo vila

    P.D. i use gnu/linux fedora core 3

    ----------------------------------------------------------------
    This message was sent using IMP, the Internet Messaging Program.

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Timothy Murphy: "Re: Wireless connectivity - was resolved, then unresolved, now RESOLVED!!!"

    Relevant Pages

    • Trouble Configurating LC_ALL
      ... echo $info2.""; ... well when I execute this in my browser, the page show me information about php, ... configure the varible lang in php or known what make setlocale internaly. ... Other thing more is that if i open the console and execute el command php -i ...
      (Fedora)
    • Re: [PHP] Error with array and include
      ... Think it echo's 'S' because it see's $lang as a string and not an array. ... echo $lang; ... But the result of the first script is 'S' (without quotes). ...
      (php.general)
    • Re: post to self?
      ... Why won't it print $lang; after having one of the images clicked? ... For the form isn't valid html? ... The w3 validator would spit out quite many errors, ...
      (alt.php)
    • Re: Post to self?
      ... Why won't it print $lang; after having one of the images clicked? ... Does here on Firefox. ... http://www.andyhsoftware.co.uk/space:: disk and FTP usage analysis tool ...
      (comp.lang.php)
    • PHP < 5.2.4 setlocale() denial of service
      ... Application: PHP < 5.2.4 ... Web Site: http://php.net ... Bug: denial of service ... setlocale() is vulnerable to a denial of service ...
      (Bugtraq)