Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [brak]Header();, Brak przekierowania
Pitter
post
Post #1





Grupa: Zarejestrowani
Postów: 75
Pomógł: 8
Dołączył: 9.08.2008

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


Witam. Mam problem z przekierowanie header. Nie wiem dlaczego, ale po prostu mi nie działa. Wpisuje w odpowiednie miejsce w skrypcie :
Kod
header('Refresh: 5; url=index.php');


Czy zna ktoś przyczynę?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
sowiq
post
Post #2





Grupa: Zarejestrowani
Postów: 1 890
Pomógł: 339
Dołączył: 14.12.2006
Skąd: Warszawa

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


@dr_bonzo,
mylisz się. Za pomocą header() możesz wysłać prawie wszystko to, co jest w sekcji <head> strony.

http://forum.php.pl/index.php?showtopic=51423
http://www.desilva.biz/php/phprefresh.html
Cytat
I found the following code to help me refresh a page or really redirecting to a page after a certain number of secionds. (I'm using php 5.x)

<?php
print(" <p align=\"center\"> User Not Found</p><br><br>"); // err msg
header('Refresh: 3; url=index.html'); // waits 3 seconds & sends to homepage
?>
na http://pl2.php.net/header

itd (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

Ten post edytował sowiq 24.09.2008, 19:04:05
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: 13.10.2025 - 16:52