Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Pomoc z header
AuronDiel
post 16.09.2012, 19:20:40
Post #1





Grupa: Zarejestrowani
Postów: 71
Pomógł: 1
Dołączył: 2.06.2012

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


Witam wszystkich! O to kod:
  1. <?php
  2. if(strstr($_SERVER['HTTP_USER_AGENT'],'Iphone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'iPad'))
  3. {
  4. header('Location: przepraszamy.php');
  5. }
  6. if(strstr($_SERVER['HTTP_USER_AGENT'],'Windows') || strstr($_SERVER['HTTP_USER_AGENT'],'imac'))
  7. {
  8. header('Location: index.php');
  9. exit();
  10. }
  11. ?>

a wypluwa:
Parse error: syntax error, unexpected '{' in /home/xxx/domains/xxxx/public_html/index2.php on line 8

Domyślam się, że nie może po prostu być 2 header. Proszę o pomoc w naprawieniu kodu.
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Wersja Lo-Fi Aktualny czas: 26.06.2025 - 03:34