Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Sprawdzanie kraju i wyświetlanie danej strony dla niego
szymon202
post
Post #1





Grupa: Zarejestrowani
Postów: 152
Pomógł: 0
Dołączył: 13.08.2013

Ostrzeżenie: (0%)
-----


  1. <?php
  2. $language = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
  3. if($language == "en"){
  4. include 'en.html';
  5. } elseif($language == "de") {
  6. include 'de.html';
  7. }else{
  8. include 'pl.html';
  9. }
  10. ?>

Możecie mi powiedzieć czy jest tu błąd?

Ten post edytował szymon202 8.02.2015, 13:49:48
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.12.2025 - 13:55