Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z includowaniem
Kethrax
post
Post #1





Grupa: Zarejestrowani
Postów: 80
Pomógł: 3
Dołączył: 9.12.2006
Skąd: Kraków

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


Jak próbuje wykonać takiego includa:

  1. <?php
  2. include $katalog.'/'.$_GET['id'].'.php?error='.$_GET['error'];
  3. ?>


Wyświetla mi błąd:

Warning: include() [function.include]: Failed opening 'files/main.php?error=error' for inclusion (include_path='.;C:\php5\pear')

link wygląda tak:
  1. <a style="text-decoration: none;" href="index.php?id=main&error=error">test error</a>


Da sie wogóle zrobić takiego includa ?

Ten post edytował Kethrax 23.03.2007, 19:55:52
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
bili.pl
post
Post #2





Grupa: Zarejestrowani
Postów: 29
Pomógł: 0
Dołączył: 11.11.2006

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


Inkluduj sam plik php bez przekazywania zmiennych GET (tak się nie da). Zmienne GET'a i tak będą dostępne w tym inkludowanym pliczku (poczytaj sobie o zasięgu zmiennych) (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)

Ten post edytował bili.pl 23.03.2007, 20:01:03
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: 6.10.2025 - 17:23