![]() |
Re: [PHP] was muss ich da noch installieren (xml) ?
oh meine fresse man kann sich auch blöd anstellen :oops: mal testen wies mit dem teil funzt :wall:
|
Re: [PHP] was muss ich da noch installieren (xml) ?
Zitat:
|
Re: [PHP] was muss ich da noch installieren (xml) ?
Zitat:
|
Re: [PHP] was muss ich da noch installieren (xml) ?
arg ich freck hier noch bevor ich xml zum laufen kriege...
also mit der libxml2.dll in windows, windows/system32 tut sich auch nix. ich hab auch nirgends andere php_... dlls! |
Re: [PHP] was muss ich da noch installieren (xml) ?
hm könnte vielleicht mal jemand eine von-anfang-an anleitung zur xml installation für php schreiben *verzweifel*
|
Re: [PHP] was muss ich da noch installieren (xml) ?
Hast du mal probiert die php_domxml.dll per dl zu laden?
Ansonsten fällt mir auch nix mehr ein. |
Re: [PHP] was muss ich da noch installieren (xml) ?
nein das noch nicht, werd ich wohl mal machen :?
|
Re: [PHP] was muss ich da noch installieren (xml) ?
so, für dieses php dokumente
Code:
kriege ich folgende fehler:
<?php
dl("libxml2.dll"); dl("php_domxml.dll"); header('Content-Type: text/plain'); $xpath = "//text[@id='3']"; /* Datei einlesen */ $doc = xmldocfile('test.xml'); echo "XPath \"$xpath\":\n\n"; /* Neuen Context erstellen fuer XPath */ $con = $doc->xpath_new_context(); /* XPath auswerten ($nodes ist Klasse XPathObject) */ $nodes = $con->xpath_eval_expression($xpath); /* Die Ergebnismenge ausgeben... */ foreach($nodes->nodeset as $node) { echo "\t",$node->tagname,":\n"; /* Die Kind-Knoten nach dem Text-Node durchsuchen... */ foreach(domxml_children($node) as $child) { if ($child->type == XML_TEXT_NODE) { echo "\t\t",$child->content,"\n"; } } } /* Zum Schluss noch entwas hinzufuegen... */ $root = $doc->root(); $node = $root->new_child('mytest'); $node->set_attribute('ip',$REMOTE_ADDR); echo "\n\n************************************\n\n"; echo $doc->dumpmem(); ?>
Code:
Warning: Unable to load dynamic library 'c:\PHP\libxml2.dll' - Das angegebene Modul wurde nicht gefunden. in c:\Dokumente und Einstellungen\***\Desktop\server\xmltest\test.php on line 2
Warning: Unable to load dynamic library 'c:\PHP\php_domxml.dll' - Die angegebene Prozedur wurde nicht gefunden. in c:\Dokumente und Einstellungen\***\Desktop\server\xmltest\test.php on line 3 Warning: Cannot add header information - headers already sent by (output started at c:\Dokumente und Einstellungen\***\Desktop\server\xmltest\test.php:2) in c:\Dokumente und Einstellungen\Leonhard\Desktop\server\xmltest\test.php on line 4 Fatal error: Call to undefined function: xmldocfile() in c:\Dokumente und Einstellungen\***\Desktop\server\xmltest\test.php on line 9 |
Re: [PHP] was muss ich da noch installieren (xml) ?
Hallo,
also das dl('libxml2.dll'); ist auch quatsch, da das das DOM XML Modul selber lädt. Die Fehlermeldung bei dl("php_domxml.dll"); sieht eher so aus als würde die DLL nicht die passenden Funktionen zur Verfügung stellen... kein Plan :gruebel: |
Re: [PHP] was muss ich da noch installieren (xml) ?
ja das habe ich mir auch gedacht und deshalb die libxml2.dll noch geladen, da ich dachte dass die domxml.dll die vielleicht nicht selbst lädt. aber es ist wirklich äußerst misteriös, weis jemand einen offiziellen mirror für die php_domxml.dll?
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:34 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz