![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 37 Pomógł: 0 Dołączył: 18.02.2008 Ostrzeżenie: (0%) ![]() ![]() |
Witam , robie stronke na lokalnym serverze czyli u mnie nakompie "krasnal" wszystko sie wyswietla ale gdy dam na server zdalny (bez ograniczen) , zawartosc plikow html nie wyswietla sie po kliknieciu na link gdy w pliku tpl dodam recznie { include file="../katalog/jakisplik.html " } wszystko sie wyswietla
oto kilkakodow Cytat index.tpl <a href=index.php?show=registre > register </a> <a href=index.php?show=search > Search </a> td width="800" height="100%" bgcolor="#1D1D1D" bordercolor="#FF0000" valign="top"> {include file="$file" } </td> index.php Cytat require('Smarty/Smarty.class.php'); $smarty = new Smarty(); $smarty->template_dir = 'desings'; $smarty->compile_dir = 'desings/templates_c'; $smarty->cache_dir = 'desings/cache'; $smarty->config_dir = 'desings/config'; if ($show==home) { $smarty->assign('file','../html/home.html'); } else if ($show==search && $action==result) { include('./search.php'); $smarty->assign('file','../html/result.php'); } else if ($show=="search"){ $smarty->assign('file','../html/search.html'); } else czy ktos mozemi poradzic czemu sie tak dzieje ze u mnie na kompie wszystko sie wyswietla a naserverze zdalnym juz nie Dodalem debug.tpl , i wyszlo na to ze zmienna $file sie nie zmienia , jakies sugestie ? Zauwazylem takze gdy usune pliki z teample_c , one sie nie pojawiaja w folderze spowrotem na zdalnych serverach , u mnie na serverze sie pojawiaja , takze mysle ze to cos jest bardziej z konfiguracja servera |
|
|
![]()
Post
#2
|
|
![]() Grupa: Moderatorzy Postów: 8 989 Pomógł: 1550 Dołączył: 8.08.2008 Skąd: Słupsk/Gdańsk ![]() |
Nie wiem jak coś takiego ci działa
Kod ($show==search && $action==result) raczej Kod $show=='search' Poza tym jak znam życie to zamiast $show musisz użyc Kod $_GET['show']
Ten post edytował wookieb 8.04.2009, 12:16:06 -------------------- |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 37 Pomógł: 0 Dołączył: 18.02.2008 Ostrzeżenie: (0%) ![]() ![]() |
oki zaraz zobacze dzieki
![]() Stary jestes wielki , nie jestem niestety orlem w php , ale pisalem na 3 roznych forach i nikt nie odpisal , jak bym mogl to postawil bymci piwo za to ![]() |
|
|
![]()
Post
#4
|
|
![]() Grupa: Przyjaciele php.pl Postów: 2 258 Pomógł: 16 Dołączył: 21.09.2004 Skąd: Kielce Ostrzeżenie: (0%) ![]() ![]() |
Sprawdź też czy magic_quotes_runtime jest off, smarty tego wymaga. Jeśli nie to:
-------------------- -------------
------ |
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 37 Pomógł: 0 Dołączył: 18.02.2008 Ostrzeżenie: (0%) ![]() ![]() |
Po odpowiedzi wookieb wszystko juz dziala
![]() |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 24.06.2025 - 07:47 |