Mailinglisten-Archive |
Hallo,
>> >>Fehlermeldung lautet:
>> >>Warning: stat failed for tpl/header.htm (errno=2 - No such file or
>> >>directory) in /www/include/vTemplate.php on line 661
>>
> Die Datei, die nicht gefunden wird ist tpl/header.htm, diese wird in der
> Zeile 661 in der vTemplate.php angesprochen, der Autor des Programs hat
> vermutlich mit einer PHP-Version < 4.1 gearbeitet, das Überprüfen, ob die
> Datei vorhanden ist oder welches Datum diese hat hat in früheren Versionen
Das kann sein, bei mir ist die PHP Version 4.1 drauf !!!
> eben nicht das "Stat failed" gebracht, daher läuft Dein Proggi
> wahrscheinlich ganz fehlerfrei, kanst ja mal die Zeile 661 posten ...
>
Die Zeile 661 ist in der folgende function:
function _fileSearch ($file) {
$filename = basename($file);
$filepath = dirname($file);
// check fullpath first
$fullpath = $filepath.'/'.$filename;
if (is_file($fullpath)) return $fullpath;
// check for relative path for current directory
if (!empty($this->_currentincludedir)) { // <-- Zeile 661
$currdir =
$this->_currentincludedir[(count($this->_currentincludedir) -1)];
$relativepath = realpath($currdir.'/'.$filepath.'/'.$filename);
if (is_file($relativepath)) {
array_push ($this->_currentincludedir,
dirname($relativepath));
return $relativepath;
}
}
return false; // found nothing
}
Kann man hier was ändern?
Danke Daniel
php::bar PHP Wiki - Listenarchive