PDA

View Full Version : نصب libxml در Php



sma_mohseni
چهارشنبه 06 مهر 1384, 20:35 عصر
سلام
چطوری میشه xml را برای کار کردن با DOM در Php فعال کرد.
کد من این خطا را میدهد

Fatal error: Call to undefined function: new_xmldoc() in c:\easyphp\www\xml\test1.php on line 2

لطفا کمک کنید

oxygenws
پنج شنبه 07 مهر 1384, 10:50 صبح
رو ویندوز یا لینوکس؟؟
دسترسی به root سرور داری یا نه؟

sma_mohseni
پنج شنبه 07 مهر 1384, 21:27 عصر
برای ویندوز میخوام
روی لوکال هاست

oxygenws
جمعه 08 مهر 1384, 03:06 صبح
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.


http://www.php.net/manual/en/ref.domxml.php