Reply to Re: Get locales without shell access?

Your name:

Reply:


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

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация