Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Index.php?id=
Bladeq123
post
Post #1





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 25.12.2008

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


Witam, mam pytanie jak zrobić że jak wejdę na stronę to żeby czytało od razu np. index.php?id=news
a nie sam index.php

Ten post edytował Bladeq123 8.01.2009, 21:06:56
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Strarus
post
Post #2





Grupa: Zarejestrowani
Postów: 339
Pomógł: 12
Dołączył: 22.11.2008

Ostrzeżenie: (20%)
X----


a no tak (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) sorki @Bladeq123

  1. <?php
  2. if($_SERVER[PHP_SELF] == index.php) { header("Location: index.php?site=news"); }
  3. ?>


nie jestem za dobry w php ale to chyba zadziała (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
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: 28.12.2025 - 12:49