Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php] Błąd podczas parsowania pliku php, Wywołanie niezidentyfikowanej funkcji.
Kisiol_Ent
post 15.02.2007, 21:56:37
Post #1





Grupa: Zarejestrowani
Postów: 146
Pomógł: 0
Dołączył: 15.01.2007

Ostrzeżenie: (60%)
XXX--


KOMUNIKAT:
Fatal error: Call to undefined function: theinlcude() in c:\usr\krasnal\www\kisiol\HTML\Lyrics\Nightwish\othafa.php on line 19

Napisalem funkcje TheInclude i jest ona umieszczona w pliku start.php z ktorego wszystko sie
dalej includuje min. plik othafa.php w ktorym jest wywolanie funkcji TheInclude. I wlasnie
wyskakuje taki o to skomplikowany błąd. Nie wiem co zrobić. Dodam ze litery duze i male zachowalem.

questionmark.gif?
Go to the top of the page
+Quote Post
k0b3
post 15.02.2007, 22:04:14
Post #2





Grupa: Zarejestrowani
Postów: 138
Pomógł: 0
Dołączył: 1.08.2006
Skąd: Kielce

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


zle ja wywolales (chyba)

pokaz co masz w start.php oraz othafa.php

albo sama ta fukncje i wywowlanie jej w pliku start.php
Go to the top of the page
+Quote Post
Kisiol_Ent
post 15.02.2007, 22:42:34
Post #3





Grupa: Zarejestrowani
Postów: 146
Pomógł: 0
Dołączył: 15.01.2007

Ostrzeżenie: (60%)
XXX--


  1. <?php
  2.  
  3.  $CmdStr = 'welcome';
  4.  $CmdSub = '#';
  5.  $CmdId = '#';
  6.  
  7. // include "php/TheInclude.php";
  8.  
  9.  function TheInclude ($pUrl)
  10. {
  11.  echo "n<!-- ";
  12.  echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~"
    ;
  13.  echo " -->";
  14.  include ("$pUrl");
  15.  echo "n<!-- ";
  16.  echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~"
    ;
  17.  echo " -->";
  18. }
  19.  
  20.  if (isset($_GET['go'])) $CmdStr = $_GET['go'];
  21.  if (isset($_GET['sub'])) $CmdSub = $_GET['sub'];
  22.  if (isset($_GET['id'])) $CmdId = $_GET['id'];
  23.  
  24.  include 'HTML/Main.php';
  25.  
  26. ?>


othafa.php (fragment)
  1. <div class="divLyrics">
  2. <?php TheInlcude ("HTML/Lyrics/Nightwish/othafa.htm"); ?>
  3. </div>
Go to the top of the page
+Quote Post
KotDomowy
post 16.02.2007, 09:38:15
Post #4





Grupa: Zarejestrowani
Postów: 26
Pomógł: 0
Dołączył: 6.12.2006
Skąd: Wrocław

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


TheInlcude ( w othafa.php ) != TheInclude - literówka w nazwie funkcji


--------------------
dabkowski.cal.pl
Go to the top of the page
+Quote Post
lopik
post 16.02.2007, 09:49:13
Post #5





Grupa: Zarejestrowani
Postów: 340
Pomógł: 0
Dołączył: 7.07.2006

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


A po co ta funkcja w ogóle ? o_O

Samo include nie wystarczy ?

Ten post edytował lopik 16.02.2007, 09:50:38


--------------------
w3c & c++
Go to the top of the page
+Quote Post
Kisiol_Ent
post 16.02.2007, 11:47:13
Post #6





Grupa: Zarejestrowani
Postów: 146
Pomógł: 0
Dołączył: 15.01.2007

Ostrzeżenie: (60%)
XXX--


Bo i jest potrzebna.

ZNalazłem błąd:
<?php TheInlcude ("HTML/Lyrics/Nightwish/othafa.htm"); ?>


ale dziala jak umiesze tylko kod w start.php

ale jak includuje ta funkcje z zewnetrzengo pliku to i tak jest
call to unidentified fun...
Go to the top of the page
+Quote Post

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: 24.07.2025 - 17:41