Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Closed TopicStart new topic
> 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
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
Go to the top of the page
+Quote Post

Closed 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.08.2025 - 07:02