Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]DOMDocument instalacja
-Gość-
post
Post #1





Goście







nie mam zielonego pojęcia jak to zainstalować, w manualu jest napisane coś o jakiś kompilatorach o co z tym chodzi? są jakieś tutoriale?
Go to the top of the page
+Quote Post
wNogachSpisz
post
Post #2





Grupa: Zarejestrowani
Postów: 1 233
Pomógł: 87
Dołączył: 6.03.2009

Ostrzeżenie: (40%)
XX---


Cytat(Gość @ 11.12.2011, 13:46:32 ) *
w manualu jest napisane coś o jakiś kompilatorach
W którym miejscu jest tak napisane?

Kod
Installation

This extension is enabled by default. It may be disabled by using the following option at compile time: --disable-dom
Go to the top of the page
+Quote Post
-Gość-
post
Post #3





Goście







Cytat
This extension is enabled by default.


  1. <?php
  2. $doc = new DOMDocument();
  3. ?>

Warning: domdocument::domdocument() expects at least 1 parameter, 0 given in C:\Program Files (x86)\WebServ\httpd\test.php on line 2
Go to the top of the page
+Quote Post
croc
post
Post #4





Grupa: Zarejestrowani
Postów: 706
Pomógł: 108
Dołączył: 12.03.2010

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


http://www.php.net/manual/en/domdocument.construct.php
Go to the top of the page
+Quote Post
-Gość-
post
Post #5





Goście







  1. $dom = new DOMDocument('1.0', 'iso-8859-1');
  2.  
  3. echo $dom->saveXML(); /* <?xml version="1.0" encoding="iso-8859-1"?> */



Cytat
Warning: domdocument::domdocument() expects parameter 2 to be long, string given in C:\Program Files (x86)\WebServ\httpd\test.php on line 2

Fatal error: Call to undefined method domdocument::saveXML() in C:\Program Files (x86)\WebServ\httpd\test.php on line 4
Go to the top of the page
+Quote Post
croc
post
Post #6





Grupa: Zarejestrowani
Postów: 706
Pomógł: 108
Dołączył: 12.03.2010

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


Wygląda jakbyś miał jakąś starą wersję tej biblioteki. Którą wersję PHP masz zainstalowaną?
Go to the top of the page
+Quote Post
-Gość-
post
Post #7





Goście







5.2.5
Go to the top of the page
+Quote Post
croc
post
Post #8





Grupa: Zarejestrowani
Postów: 706
Pomógł: 108
Dołączył: 12.03.2010

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


Wyczytałem, że np. XAMPP nadpisuje tę bibliotekę. Spróbuj zakomentować taką linijkę w php.ini i zrestartuj serwer:
  1. extension=php_domxml
Go to the top of the page
+Quote Post
-Gość-
post
Post #9





Goście







wielkie dzięki działa, a specjalnie odkomentowałem te linie przed używaniem
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: 18.09.2025 - 19:12