Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> header php wszystkie sposoby zawodza
de_gie
post
Post #1





Grupa: Zarejestrowani
Postów: 122
Pomógł: 0
Dołączył: 1.01.2011

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


testuje na pliku ktory zawiera tylko
  1. <?php
  2. header( 'Content-Type: text/html; charset=utf-8' );
  3. header('Location: <a href="http://www.nowy-adres-strony.pl/&#39%3b%29;" target="_blank">http://www.nowy-adres-strony.pl/');</a>
  4. ?>

i wywala blad


Warning: Cannot modify header information - headers already sent by (output started at /home/admin/domains/xxxxx/public_html/przekierowanie.php:1) in /home/admin/domains/xxxxxl/public_html/przekierowanie.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at /home/admin/domains/xxxxx/public_html/przekierowanie.php:1) in /home/admin/domains/xxxxx/public_html/przekierowanie.php on line 3


probowalem takze

  1. <?php ob_start();
  2. header( 'Content-Type: text/html; charset=utf-8' );
  3. header('Location: <a href="http://www.nowy-adres-strony.pl/&#39%3b%29;" target="_blank">http://www.nowy-adres-strony.pl/');</a>
  4. ?>


jest to samo dodam ze posiadam serewer dedykowany i moze w jakims pliku cos mozna zmienic by to dzialalo czy jest jakis prostrzy sposob z gory bardzo dziekuje za pomoc
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




To że użyłeś ob_start nie znaczy ze sprobowales wszystkiego...

słowo klucz: BOM
zamykam. bylo milion razy


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post

Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 09:52