Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z klasa
Lethys
post
Post #1





Grupa: Zarejestrowani
Postów: 642
Pomógł: 2
Dołączył: 9.03.2006

Ostrzeżenie: (30%)
XX---


Znalazlem ciekawy skrypt w necie i chcialem z niego skorzystac ale wyskakuje blad :

  1. <?php
  2. Warning: main(class.FastTemplate.php): failed to open stream: No such file or directory in /var/www/vhosts/monzter.pl/subdomains/liczniki/httpdocs/inc/main.inc.php on line 5
  3.  
  4. Warning: main(): Failed opening 'class.FastTemplate.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/monzter.pl/subdomains/liczniki/httpdocs/inc/main.inc.php on line 5
  5. ?>


A co dziwne ta klasa znajduje sie w tym samym katalogu co main.inc.php , co moze byc nie tak ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Lethys
post
Post #2





Grupa: Zarejestrowani
Postów: 642
Pomógł: 2
Dołączył: 9.03.2006

Ostrzeżenie: (30%)
XX---


main.inc.php

  1. <?
  2.  
  3. include_once('cookies.inc.php');
  4. include_once('common.inc.php');
  5. include_once('class.FastTemplate.php');
  6. include_once('mysql.class.php');
  7.  
  8. class DB extends DB_mySql {
  9. var $Debug = 0;
  10. var $Halt_On_Error = 'no';
  11.  
  12. function DB($dbname,$dbhost,$dbuser,$dbpass) {
  13. parent::connect($dbname,$dbhost,$dbuser,$dbpass);
  14. }
  15. }
  16.  
  17. $db = new DB($dbname,$dbhost,$dbuser,$dbpass);
  18.  
  19. ?>


No a klasa jest dluga (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) wiec raczej nie ma sens dawac (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)

Ten post edytował [Lethys] 29.11.2006, 21:08:12
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: 12.10.2025 - 06:09