Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> header
marmot
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 20.02.2006

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


czy moze mi ktos wyjasnic dlaczego wypisuje mi:

Warning: Cannot modify header information - headers already sent by (output started at /home/rosa/ftp/zamowienia/header.php:30) in /home/rosa/ftp/zamowienia/comment.php on line 17

w header.php mam:

$userIP = getenv("REMOTE_ADDR");

if (!preg_match("/80.53.198.242/", "$userIP")) {

header("Location: http://www.onet.pl/");


}

i koliduje to z:

header("Location: edit.php");

ktory jest w pliku comment.php, oczywiste mam w comment.php require(header.php) dlatego tak sie dzieje, tylko nie rozumiem dlaczego serwer bierze wogole pod uwage to skoro warunek if (!preg_match("/80.53.198.242/", "$userIP")) nie jest spelniony...

prosze o jakies pomysly na rozwiazanie tego :)
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: 22.08.2025 - 20:29