Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Zmiana katalogu pobieranych plikow, brak rozwiazania...
annsin
post 18.08.2007, 08:13:21
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 28.07.2005

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


Co zmienic w tym kodzie aby pliki byly pobierane np z podkatalogu "dane"
a nie z katalogu glownego ?
  1. <?
  2. if($page=="") $page="link1";
  3. if(!file_exists($page.".php")) 
  4. {
  5.  include "default.php";
  6. }
  7. else 
  8. {
  9. include_once $page.".php";
  10. }
  11.  
  12. ?>


Ten post edytował annsin 20.08.2007, 13:52:16
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Cysiaczek
post 18.08.2007, 08:23:12
Post #2





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Popraw proszę tytuł topiku na zgodny z zasadami forum Przedszkole

  1. <?php
  2. if($page=="") "dane/".$page="link1";
  3. if(!file_exists($page.".php")) 
  4. {
  5.  include "dane/default.php";
  6. }
  7. else 
  8. {
  9. include_once $page.".php";
  10. }
  11. ?>


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 20:25