Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Pomoc z header
AuronDiel
post
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
 
Start new topic
Odpowiedzi
barthez66
post
Post #2





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 16.09.2012

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


Prawdopodobnie masz rację nie może być 2 headreow na jednej stronie (IMG:style_emoticons/default/smile.gif)
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: 4.10.2025 - 07:50