Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> __PHP_Incomplete_Class Object
wojto
post
Post #1





Grupa: Zarejestrowani
Postów: 158
Pomógł: 0
Dołączył: 29.06.2003
Skąd: Warszawa

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


witam,
na stronie moje sesje przyjmuja taka wartosc:
Kod
Array
(
    [language] => language Object
        (
            [lang_name] => __PHP_Incomplete_Class Object
                (
                    [__PHP_Incomplete_Class_Name] => language
                    [lang_name] => russian
                )

        )

)

znalazlem w necie info, ze __PHP_Incomplete_Class Object jest jakims bledem w php :/
czy ktos z was sie spotkal z takim bledem i wie jak temu zapobiec?

klasa language jest prosta:
  1. <?php
  2. class language
  3. {
  4. function language() {
  5. return true;
  6. }
  7.  
  8. function load_file($file) {
  9. global $lang, $auth;
  10.  
  11. if (file_exists(SITE_ADRESS.'languages/'.$auth -> user_language.'/'.$file)) {
  12. include_once(SITE_ADRESS.'languages/'.$auth -> user_language.'/'.$file);
  13. return true;
  14. } else {
  15. return false;
  16. }
  17. }
  18. }
  19.  
  20. ?>

tworzenie: $language = new language();

// aha, na localhoscie dziala ok

pzdr. wojto

Ten post edytował wojto 7.09.2005, 14:58:54
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
aleksander
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 742
Pomógł: 0
Dołączył: 14.12.2003
Skąd: Gdańsk, Trójmiasto

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


a zdefiniowales zmienna $db w metodzie gc ? to jest tak samo jak w funkcjach. Zrob wpierw
  1. <?php
  2. function gc($a)
  3. {
  4. $db = DB::getInstance();
  5. return($db -> sql_query("DELETE FROM ".PREFIX."sessions WHERE last_active<UNIX_TIMESTAMP()-1800"));
  6. }
  7. ?>

i używaj znacznika php
(IMG:http://forum.php.pl/uwaga.gif)
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: 28.12.2025 - 12:50