Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z funkcją, plik.php?who=1 nie działa w funckji :/
Lisek54
post
Post #1





Grupa: Zarejestrowani
Postów: 112
Pomógł: 0
Dołączył: 6.12.2004
Skąd: Miastko

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


Mam problem (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Oto kod:

  1. <?
  2. include(&#092;"czytnik.php\");
  3. include(&#092;"themes/$skin/index.php\");
  4. /////////////////////////////
  5. function tresc()
  6. {
  7. if (isset($op)) include(&#092;"strony/\".$who.\".txt\"); else include \"baza/str/error.txt\";
  8. }
  9. ?>


I oto chodzi że gdy wejde w plik.php?who=1 pokazuje mi zawartosc baza/str/error.txt (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Plik 1.txt w folderze strony instnieje i ma tresc 'sdadsasdga'. Gdy robię skrypt
  1. <? if (isset($op)) include(&#092;"strony/\".$who.\".txt\"); else include \"baza/str/error.txt\"; ?>
bez funkcji to działa mi normalnie. Jak zrobić żeby ten skrypt działał w funkcji?
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: 2.10.2025 - 18:36