|  | Posted by Rik on 10/13/06 13:19 
Kim Andrι Akerψ wrote:> Rik wrote:
 >
 >> Hi all,
 >>
 >> is there a in PHP to get the available locales without shellacces
 >> (i.e.  locale -a)?
 >>
 >> Grtz,
 >
 > Does this do anything for you? ->
 >
 > <pre><?php passthru("locale -a"); ?></pre>
 >
 > The <pre></pre> is just for the sake of formatting. Whether or not the
 > above code line will work, depends on the system configuration (ie.
 > the ability to run external commands may be disabled by the
 > administrator).
 
 Well, that's the problem: I cannot start external programs. Here on my own
 server it's no problem, but it's for a dynamic package that has to work on
 a lot of different servers, where running an external program is often
 blocked. Looping through hundreds of possibilities and checking for false
 is a big pain in this case, but the only solution I've found so far.
 
 Grtz,
 --
 Rik Wasmus
  Navigation: [Reply to this message] |