Delphi-PRAXiS
Seite 3 von 4     123 4      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   [PHP] was muss ich da noch installieren (xml) ? (https://www.delphipraxis.net/29211-%5Bphp%5D-muss-ich-da-noch-installieren-xml.html)

Meflin 6. Sep 2004 13:43

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:

Meflin 6. Sep 2004 14:12

Re: [PHP] was muss ich da noch installieren (xml) ?
 
Zitat:

Zitat von fiasko
Hallo,

na was denkste warum ich die ganze Zeit drauf rumm poche ;-). In der Doku steht:

Zitat:

Also, there is one additional DLL that must be made available to your system's PATH in order for this extension to work. In PHP 4 this is in the dlls/ directory. It's name: For PHP <= 4.2.0, it's libxml2.dll. For PHP >= 4.3.0, it's iconv.dll...
die php_domxml.dll ist ja nur ein wrapper, die eigentliche XML Funktionalität liefert dann die libxml2.dll. Den Link zu dem libxml Windows Binary hab ich schon mal gepostet...

allerdings weis ich immernochnicht wohin damit: ich habe keine dll/ directory :gruebel:

fiasko 6. Sep 2004 16:39

Re: [PHP] was muss ich da noch installieren (xml) ?
 
Zitat:

Also, there is one additional DLL that must be made available to your system's PATH in order for this extension to work...
Oder meinst du die php_domxml.dll? Einfach dort wo die anderen php_*.dll's liegen?!

Meflin 6. Sep 2004 16:41

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!

Meflin 6. Sep 2004 19:56

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*

fiasko 6. Sep 2004 20:11

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.

Meflin 6. Sep 2004 20:17

Re: [PHP] was muss ich da noch installieren (xml) ?
 
nein das noch nicht, werd ich wohl mal machen :?

Meflin 7. Sep 2004 14:10

Re: [PHP] was muss ich da noch installieren (xml) ?
 
so, für dieses php dokumente
Code:
<?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();
?>
kriege ich folgende fehler:
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

fiasko 7. Sep 2004 16:47

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:

Meflin 8. Sep 2004 11:22

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 10:44 Uhr.
Seite 3 von 4     123 4      

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz