Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php][xml] Warning, Problem z odpaleniem
fernet
post
Post #1





Grupa: Zarejestrowani
Postów: 91
Pomógł: 1
Dołączył: 22.03.2007

Ostrzeżenie: (0%)
-----


Po "instalacji" DOMXML'a i wklepaniu przykladowego kodu

  1. <?php
  2. if (!$dom = domxml_open_file("RandomBaner.xml")) {
  3. echo "Error while parsing the document\n";
  4. }
  5.  
  6. $root = $dom->document_element();
  7. ?>


serwer zwraca mi

Kod
Warning: domxml_open_file(): I/O in c:\usr\krasnal\www\xml_paser\index.php on line 3

Warning: domxml_open_file(): warning : in c:\usr\krasnal\www\xml_paser\index.php on line 3

Warning: domxml_open_file(): failed to load external entity "RandomBaner.xml" in c:\usr\krasnal\www\xml_paser\index.php on line 3
Error while parsing the document

nie ukrywam ze nie mam zielonego pojecia w czym moze tkwic problem...

phpinfo();

domxml

DOM/XML
enabled
DOM/XML API Version 20020815
libxml Version 20611
HTML Support enabled
XPath Support enabled
XPointer Support enabled
DOM/XSLT enabled
libxslt Version 1.1.7
libxslt compiled against libxml Version 2.6.11

----------------------------------------------------
iconv

iconv support enabled
iconv implementation libiconv
iconv library version 1.9

Za pomoc i zainteresowanie z gory dziekuje i pozdrawiam...
Go to the top of the page
+Quote Post
sticker
post
Post #2





Grupa: Zarejestrowani
Postów: 611
Pomógł: 19
Dołączył: 28.02.2005
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


hmm moze nie widzi tego pliku co ma otworzyc ?
Go to the top of the page
+Quote Post
fernet
post
Post #3





Grupa: Zarejestrowani
Postów: 91
Pomógł: 1
Dołączył: 22.03.2007

Ostrzeżenie: (0%)
-----


sciezke dostepu ustawilem wzgledem index.php w katalogu xml_paser znajduje sie index.php i RandomBaner.xml. Dzisiaj jak tylko bede mial mozliwosc sprawdze $_SERVER['DOCUMENT_ROOT']...


Ok juz smiga ten caly mlyn to przez ta rzecz zwana Windowsem...

  1. <?php
  2. $winF = getcwd();
  3.  
  4. if (!$dom = domxml_open_file("$winFRandomBaner.xml")) {
  5. echo "Error while parsing the document\n";
  6. }
  7.  
  8. $root = $dom->document_element();
  9. ?>


Ten post edytował fernet 29.11.2007, 23:13:20
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.09.2025 - 16:37