Trouble Configurating LC_ALL

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

  • Next message: Rahul Sundaram: "Re: critical OO bug"
    Date: Thu, 31 Mar 2005 07:30:27 -0500
    To: fedora-list@redhat.com
    
    

    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 if 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: Rahul Sundaram: "Re: critical OO bug"

    Relevant Pages

    • Re: [PHP] Fatal error when calling nested function
      ... return $dollars * $conversion; ... echo convert_pound; ... you can only execute the outer function once. ...
      (php.general)
    • Re: [PHP] Function returning but continues execution
      ... I have come across what appears to be a bug in PHP, but one that I am having difficulty writing test code for. ... Checks to make sure that the friend being added is not already added. ... No further code in the function should execute. ...
      (php.general)
    • Function returning but continues execution
      ... I have come across what appears to be a bug in PHP, but one that I am having difficulty writing test code for. ... Checks to make sure that the friend being added is not already added. ... No further code in the function should execute. ...
      (php.general)
    • Cant connect to a mySQL DB
      ... I'm trying connecting to a mySQL DBm but I've some troubles. ... echo "Connecting ... ... When I execute, the php page just writes: ...
      (comp.lang.php)
    • [Full-Disclosure] php-exec-dir vulnerable after latest upgrade
      ... echo nl2br; ... it and i was still able to execute it, you HAVE to do the space after the ... > While you are reading this text, an essential hacking tool ...
      (Full-Disclosure)