Fatal error: Call to undefined function xmldocfile

ZloiJoker

Новичок
Fatal error: Call to undefined function xmldocfile

Fatal error: Call to undefined function xmldocfile()

уже замучился, домхмл стоит.
Что ему может не хватать ?
вот пхпинфо: http://www.hardart.ru/p.php
 
а с чего ты решил, что эта функция имеет отношение к пхп?
 
Fatal error: Call to undefined function xmldocfile() in /usr/home/xxxx/domains/xxxx.ru/public_html/admin/cron/tassn.php on line 54

код:
$filename = $localdir.$file;^M
$doc = xmldocfile ($filename) or die ("Could not read file!");^M
$xpath = $doc->xpath_new_context ();^M
 
у меня такое ощущение, что половина посетителей этого форума не понимают русского языка.

почему
ты
решил
что
эта
функция
имеет
отношение
к
пхп
?

можат, так понятнее?
могу ещё по слогам написать
 
Точно никогда не было ?
xmldocfile
(PHP 4 >= 4.0b4)

xmldocfile -- Creates a DOM object from XML file
Description

object xmldocfile (string filename)


The function parses the XML document in the file named filename and returns an object of class "Dom document", having the properties as listed above. The file is accessed read-only.

See also xmldoc()


Не подскажете аналог этой функции ?

-~{}~ 25.07.06 15:29:

xmldoc -> domxml_open_mem()
xmldocfile -> domxml_open_file()
domxml_new_xmldoc -> domxml_new_doc()
итд

тема закрыта
 
[m]domxml_open_file[/m]
(PHP 4 >= 4.2.1, PECL)
domxml_open_file -- Creates a DOM object from an XML file
 
подскажу, на первый раз:
This extension is only available if PHP was configured with --with-dom[=DIR]. Add --with-dom-xslt[=DIR] to include DOM XSLT support. DIR is the libxslt install directory.
 
вот пхпинфо: http://www.hardart.ru/p.php
выдержка из пхп имфо с сервера:
DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.26
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled
 
BRat, неа

Note: This extension has been moved to the PECL repository and is no longer bundled with PHP as of PHP 5.0.0.

Note: This extension is no longer marked experimental. It will, however, never be released with PHP 5, and will only be distributed with PHP 4. If you need DOM XML support with PHP 5 you can use the DOM extension. This domxml extension is not compatible with the DOM extension.

Installation of PECL extensions
PECL domxml

Этот модуль перенесён в PECL и не совместим с DOM из PHP5. Ставь его.
 
что из пиар надо поставить чтобы заработало domxml_open_file
PECL is a repository of PHP extensions that are made available to you via the PEAR packaging system. This section of the manual is intended to demonstrate how to obtain and install PECL extensions.
 
бред какой то.
как поставить, это под никс ?
по ссылкам рассказано как подключать экстеншион.:
cat /usr/local/etc/php/extensions.ini
extension=mysql.so
extension=session.so
extension=pcre.so
extension=gd.so
extension=ctype.so
extension=ftp.so
extension=bz2.so
extension=curl.so
extension=iconv.so
extension=mysqli.so
extension=zlib.so
extension=pdo.so
extension=posix.so
extension=simplexml.so
extension=sockets.so
extension=sqlite.so
extension=tokenizer.so
extension=xml.so
extension=xmlreader.so
extension=xmlrpc.so
extension=xmlwriter.so
extension=zip.so
extension=dom.so
 
Пакет pear под никс вообще одной командой ставится:
pear install package_name
 
Сверху