Ja danke dir!
Habe die Beta installiert, leider habe ich immer noch das gleiche Problem!
Die PHP-Fehlermeldung lautet folgendermassen:
Warning: DOMDocument::load() [domdocument.load]: I/O warning : failed to load external entity
Der Aufruf geschieht folgendermassen:
function Load_Thema ($tnumber,$bname) {
$dom = new DOMDocument();
$domBible = new DOMDocument();
$dom->preserveWhiteSpace = false;
$domBible->preserveWhiteSpace = false;
$dom->load('data/Themen.xml');
$domBible->load('data/NW1986.xml');
$element = new DomXPath($dom);
$element2 = new DomXPath($domBible);
$i = 1;
$content = "";
// Thema-Titel ermitteln
$thema = $element->query('//thema[' . $tnumber . ']/@title');
$thema = $thema->item(0)->value;
// Definitions-Text ermitteln
$nodelist = $element->query('//thema[' . $tnumber . ']/*');
// Thema-Titel in Ausgabevariabel speichern
$content = 'Thema: ' . $thema . '$$';
foreach ($nodelist as $node){
// Ermitteln der Art der Unterknoten (definition, bs)
if($node->nodeName == 'definition'){
$content = $content . '<div id="definition">' . $node->nodeValue . '</div>';
}
elseif($node->nodeName == 'bs'){
$content = $content . '<div id="bibelstelle"><table>';
$b++;
$bs = $node->nodeValue;
$split = explode(":", trim($bs));
$bs1 = $split[0] . ' ' . $split[1] . ':' . $split[2];
if(strpos($bs,"-") == false){
$vers = $element2->query('//BIBLEBOOK[@bsname=\'' . $split[0] . '\']/CHAPTER[@cnumber=\'' . $split[1] . '\']/VERS[@vnumber=\'' . $split[2] . '\']');
$content = $content . '<tr><td id="bs"><b>' . $bs1 . '</b>' . '</td><td id="bt">' . $vers->item(0)->firstChild->data . '</td></tr>';
}
else{
$bs1 = $split[0] . ' ' . $split[1] . ':';
$versnumber = explode("-", $split[2]);
$v = $versnumber[0];
$w = $versnumber[1];
while ($v <= $w) {
$vers = $element2->query('//BIBLEBOOK[@bsname=\'' . $split[0] . '\']/CHAPTER[@cnumber=\'' . $split[1] . '\']/VERS[@vnumber=\'' . $v . '\']');
$content = $content . '<tr><td id="bs"><b>' . $bs1 . $v . '</b>' . '</td><td id="bt">' . $vers->item(0)->firstChild->data . '</td></tr>';
$v++;
}
}
$content = $content . '</table></div>';
}
}
// Alle State-Einträge ermitteln
$states = $element->query('//thema[' . $tnumber . ']/state/*');
// Schleife für alle State-Einträge
foreach ($states as $state) {
$b = 0;
// Selektion aller States
$nodelist = $element->query('//thema[' . $tnumber . ']/state[' . $i . ']/*');
// Schleife über alle State-Unterknoten
foreach ($nodelist as $node){
// Ermitteln der Art der Unterknoten (title, note, bs)
if($node->nodeName == 'title'){
$content = $content . '<h4>' . $node->nodeValue . '</h4>';
}
elseif($node->nodeName == 'note'){
$content = $content . '<div id="textnote">' . $node->nodeValue . '</div>';
}
elseif($node->nodeName == 'bs'){
$content = $content . '<div id="bibelstelle"><table>';
$b++;
$bs = $node->nodeValue;
$split = explode(":", trim($bs));
$bs1 = $split[0] . ' ' . $split[1] . ':' . $split[2];
if(strpos($bs,"-") == false){
$vers = $element2->query('//BIBLEBOOK[@bsname=\'' . $split[0] . '\']/CHAPTER[@cnumber=\'' . $split[1] . '\']/VERS[@vnumber=\'' . $split[2] . '\']');
$content = $content . '<tr><td id="bs"><b>' . $bs1 . '</b>' . '</td><td id="bt">' . $vers->item(0)->firstChild->data . '</td></tr>';
}
else{
$bs1 = $split[0] . ' ' . $split[1] . ':';
$versnumber = explode("-", $split[2]);
$v = $versnumber[0];
$w = $versnumber[1];
while ($v <= $w) {
$vers = $element2->query('//BIBLEBOOK[@bsname=\'' . $split[0] . '\']/CHAPTER[@cnumber=\'' . $split[1] . '\']/VERS[@vnumber=\'' . $v . '\']');
$content = $content . '<tr><td id="bs"><b>' . $bs1 . $v . '</b>' . '</td><td id="bt">' . $vers->item(0)->firstChild->data . '</td></tr>';
$v++;
}
}
$content = $content . '</table></div>';
}
}
$i++;
}
echo $content;
}
Wie gesagt mit XAMPP funktioniert es einwandfrei. Verstehe einfach nicht warum dies mit der DiskStation net geht!