Hallo,
Ik heb het goed staan maar hij link niet naar die map hoe?
Bestand class.xdbSmarty.php
  • <?php
    /**
    * OBST, a tool for the multilingual browsergame TribalWars.
    * Copyright (C) 2006-2007 Robert Nitsch
    *
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation; either version 2
    * of the License, or (at your option) any later version.
    *
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    * GNU General Public License for more details.
    *
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
    **/

    // stellt die Smartyklasse bereit
    // URL: http://smarty.php.net

    require(OBST_SMARTYDIR.'/Smarty.class.php');

    class xdbSmarty extends Smarty {

    function xdbSmarty()
    {
    $this->template_dir = OBST_DIR_TEMPLATE.'/';
    $this->compile_dir = OBST_ROOT.'/cache/compiled';
    $this->cache_dir = OBST_ROOT.'/cache';

    $this->assign('obst_root', OBST_ROOT);
    }

    }

    ?>

En dit geeft die aan.
Warning: main(./../smarty/smarty.class.php) [function.main]: failed to open stream: No such file or directory in /home/www/tktribal.100webspace.net/include/class.xdbSmarty.php on line 24

Fatal error: main() [function.require]: Failed opening required './../smarty/smarty.class.php' (include_path='.:/usr/local/lib/php') in /home/www/tktribal.100webspace.net/include/class.xdbSmarty.php on line 24
  • <?php
    require(OBST_SMARTYDIR.'./Smarty.class.php');
    require(OBST_SMARTYDIR.'../Smarty.class.php');
    require(OBST_SMARTYDIR.'../../Smarty.class.php');
    require(OBST_SMARTYDIR.'../../../Smarty.class.php');
    require(OBST_SMARTYDIR.'../include/Smarty.class.php');
    require(OBST_SMARTYDIR.'include/Smarty.class.php');
    require(OBST_SMARTYDIR.'../include/Smarty.class.php');
    ?>


Alle maal werken niet :(
Waar de OBST_SMARTYDIR-constante wordt gedefine()d.

En bumpen mag niet.
Wat bedoel je daar mee.
Kan je niet gewoon dat ff goed zetten voor me?
Ik heb jou code toch niet, hoe kan ik het dan goed zetten? En dit is PHPhulp, geen PHPafhaalchinees. Je moet dus zelf ook je inzet tonen om onze inzet te krijgen.
Wat heb je dan nodig?
Dat je me verder kan helpen?
Uhm, de code waarin je de OBST_SMARTYDIR-constante define()d.
En welke file is dat?
Je kan toch wel zelf de verwijzing aanpassen, net als hier? En ik weet niet welke file dat is aangezien het jouw code is en niet de mijne, dus moet je zelf zoeken.
Sorry, maar jij bent degene met deze bestanden op je server, hoe moet ik nu weten welk bestand?
Ja maar ik weet niet welke het is.

Reageren