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

Posty w temacie


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: 17.10.2025 - 04:28