Fatal error: Call to undefined function: domxml_new_doc() in C:\Myserver\www\newFormat2.php on line 15
what is the problem?
Printable View
Fatal error: Call to undefined function: domxml_new_doc() in C:\Myserver\www\newFormat2.php on line 15
what is the problem?
domxml_new_doc() is not defined.
This is what you need to do:
Quote:
From: http://www.php.net/manual/en/ref.domxml.php
Windows users will enable php_domxml.dll inside of php.ini in order to use these functions. In PHP 4 this DLL resides in the extensions/ directory within the PHP Windows binaries download. You may download this PECL extension DLL from the PHP Downloads page or at http://snaps.php.net/. 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. And as of PHP 5.0.0, iconv is compiled into your Windows PHP binaries by default so no extra DLL is needed.
what mean unable the DLL file?
in the php.ini file find the line which says:
#extension=php_domxml.dll
And remove the #
in my ini.php, the extension is like this
;extension =php_domxml.dll
anyway, i have remove the ; as well as the ; for icon.dll but it still cannot work.......is it me do wrong thing?
Which version of PHP are you using, and, what errors do you get? If you are using PHP 4 you also need to copy the file libxml2.dll from your dll's folder in the PHP directory to the windows directory.
version 4.3.3 ............but i didnt see the file name libxml2.dll in the dll's folder......the error is same as the first post
If you don't have it, it means you did not download the full zip version of PHP 4. The full zip version contains all the extension dlls and libraries, so to get it to work you'll need to download it.
Also, if PHP is running as an Apache module, you need to restart APache every time you change the php.ini file.
it's libxml2.dll. For PHP >= 4.3.0, it's iconv.dll.
paragraph said that 4.3.0 , only need iconv.dll, for my php version 4.3.3, is it the libxml2.dll not necessary??
do i need to enable the iconv.dll file in the ini.php?
So it is: if you have iconv.dll, copy it to the windows directory.
You just need to enable this line in the php.ini:
extension =php_domxml.dll
Esure you have that in your extensions directory too. The extensions directory is also set in the php.ini.
still cannot work......i have copy the iconv.dll file to WINDOWS/system32 folder, correct?
Where is php_domxml.dll? And what is the extension_dir set to in the php.ini?
Also, to ensure that the interpreter is finding php.ini, make a call to phpinfo(), on the one of the first lines it should say the path of the php.ini if it has found one.
is it this line?
extension_dir = "./"
php_domxml.dll is in the extension folder
Does that tell you that you should change the extension_dir to "./ext" ??
no....should i change?
i hv solved the problem of the undefine function......but now i'm not sure whether is it work or not.........it only display blank screen...noting display......
yes :)
i remove the ; infront the php_domxml.dll , and i run my code, it popup message , "couldnt load the dll, "./ext/domxml.dll........y?
if i didnt remove the ; when run the code, it only display a blank page........
It meants it cannot find the dll. What is the exact location of php_domxml.dll?
c:Myserver/php/extension
So why is your extension path set to to "./ext" and not "/extension".Quote:
Originally Posted by kenny_oh