Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > Apache Help

Apache Help Post any question relating to Apache here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-12-27, 07:25 PM
Junior Member
 
Join Date: Dec 2006
Posts: 10
oskare100 is on a distinguished road
Default Urgent problem with PHP domxml_open_mem(), php extension php_domxml.dll. Need help!

Hello,
When I try to use the domxml_open_mem() I get the error Fatal error: Call to undefined function: domxml_open_mem() in /home/domains/tests/ebay.php on line.."

My server is an CentOS server, I've root access to it, with php4, apache and MySQL installed to handle the web pages.

I found an old thread at another forum with the following information about a similar problem;
Quote:
You are probably receiving this error because php is not loading the
php_domxml.dll extension. This extension is requried for the function
you are trying to use.

Make sure you have the php_domxml.dll file and then add the following
to your php.ini configuration file.
extension=php_domxml.dll
But I don't have the php_domxml.dll file (and not the extension=php_domxml.dll in the php.ini file either), how can I get it (if I need it)? I've searched for a few hours now and the only thing I've figured out is the Linux don't use DLLs and that the name of the file probably should be php_domxml.so but I can't find that file either.. so I'm lost here..

I've found information and installation requirements at http://se2.php.net/manual/en/ref.domxml.php but it seams like my php configuration is correct, but please, take a look at it. You can find it at http://69.80.225.234/tests/phpinfo.php. Here is what it is configured with:
Code:
 './configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/file/magic.mime' '--with-apxs2=/usr/sbin/apxs'
I've also installed libxslt-1.1.17 and libxml2-2.6.26 but nothing more. Maybe I need to do something more?

Thanks in advance
/Oskar

Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2006-12-28, 05:52 AM
Senior Member
 
Join Date: Jul 2006
Location: Prague, Czech Republic
Posts: 193
vladimir_cz is on a distinguished road
Send a message via ICQ to vladimir_cz Send a message via MSN to vladimir_cz Send a message via Yahoo to vladimir_cz Send a message via Skype™ to vladimir_cz
Default

1. why you load .dll ? it is win32 extension. under linux you should use .so
2. check php.ini file and set right extension_path value
3. check for php_domxml.so (or domxml.so) file exists in your extension path
4. if not exists, follow steps for build extension (phpize, configure, make) - these steps described in documentation.
__________________
Thank you. Vladimir, Czech Republic.
http://www.smartwebco.com/
I'm looking for job.
Reply With Quote
  #3 (permalink)  
Old 2006-12-28, 05:56 AM
Junior Member
 
Join Date: Dec 2006
Posts: 10
oskare100 is on a distinguished road
Default

Quote:
Originally Posted by vladimir_cz View Post
1. why you load .dll ? it is win32 extension. under linux you should use .so
2. check php.ini file and set right extension_path value
3. check for php_domxml.so (or domxml.so) file exists in your extension path
4. if not exists, follow steps for build extension (phpize, configure, make) - these steps described in documentation.
Hello,
I don't actually know where php_domxml.so is but I searched for it and couldn't find it so I guess I don't have it. In the extension folder (from the php.ini file) I could only find a .so mysql file and another .so file.

I did also search for php_domxml.so but couldn't find any information about it, google kept suggesting php_domxml.c instead, could that be the file?

How do I know if it is the right extension_path value in the php.ini file? And how do I know what to build the extension with? From what I could see in my PHP config I had the necessary things.. Or can you see any errors in the php config?

Really thanks for your reply,
/Oskar

Last edited by oskare100; 2006-12-28 at 06:00 AM.
Reply With Quote
  #4 (permalink)  
Old 2006-12-28, 06:10 AM
Senior Member
 
Join Date: Jul 2006
Location: Prague, Czech Republic
Posts: 193
vladimir_cz is on a distinguished road
Send a message via ICQ to vladimir_cz Send a message via MSN to vladimir_cz Send a message via Yahoo to vladimir_cz Send a message via Skype™ to vladimir_cz
Default

your extension_dir is /usr/lib/php4
it is ok.
so, build domxml extension:
cd <phpsources>/ext/domxml/
phpize
./configure <params for domxml>
make && make install
this put right extension name to php.ini file and try to restart apache
__________________
Thank you. Vladimir, Czech Republic.
http://www.smartwebco.com/
I'm looking for job.
Reply With Quote
  #5 (permalink)  
Old 2006-12-28, 08:06 AM
Junior Member
 
Join Date: Dec 2006
Posts: 10
oskare100 is on a distinguished road
Default

The problem is solved.

/Oskar

Last edited by oskare100; 2006-12-28 at 01:22 PM.
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:57 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.