Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][PHP]Parsowanie URLi peroblemik
lukaszk
post
Post #1





Grupa: Zarejestrowani
Postów: 159
Pomógł: 0
Dołączył: 21.12.2010

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


Witam, staram się ogarnąć coś takiego jak Nice Url niestety gotowe rozwiązania nie wchodzą w grę (funkcje klasy)

Znalazłem teoretycznie łatwą metodę ale nie działa nie wiem może ja coś robię nie tak.

http://webinside.pl/artykul-187-parsowanie-urli.html

Więc stworzyłem dwa pliki .htc......
i artykul.php
(htc..... tak jak Metoda nr 2 na stronie)
Plik artykul.php zawiera coś takiego

  1. <? if ($_GET['id']=='news') { ?>
  2. "But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?"
  3. <? } ?>
  4. <a href="artykul.php?id=news&do=pokaz&ktory=6">Link</a>


i niestety nic nie działa sprawdzełem na dwóch serwerach i nie działa.
Serwer ma włączoną obsługę rewrite
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: 22.08.2025 - 13:57