store | blogs | forums | twitter | facebook | wiki | downloads | support portal
Atomic Secure Linux
It is currently Wed Oct 22, 2014 6:21 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: DOMXML in php5
Unread postPosted: Tue Oct 28, 2008 10:36 am 
Offline
Forum User
Forum User

Joined: Wed Jun 06, 2007 10:49 am
Posts: 94
Hello all,

i need domxml on my server.

It's a centOS server, with asl, php 5.2.6, apache ( from ART repo ) etc.

The problem is that domxml isn't working.
I've searching configs and in /etc/php.d/dom.ini shows:

; Enable dom extension module
extension=dom.so

I have all rpms installed:

php-5.2.6-1.el5.art
php-common-5.2.6-1.el5.art
php-ldap-5.2.6-1.el5.art
php-suhosin-0.9.24-1.el5.art
php-devel-5.2.6-1.el5.art
php-cli-5.2.6-1.el5.art
php-gd-5.2.6-1.el5.art
php-imap-5.2.6-1.el5.art
php-xml-5.2.6-1.el5.art
php-mysql-5.2.6-1.el5.art
php-mbstring-5.2.6-1.el5.art
php-mcrypt-5.2.6-1.el5.art
php-pear-1.5.0-5.el5.art
php-pdo-5.2.6-1.el5.art
php-xmlrpc-5.2.6-1.el5.art

But when I run a php that needs domxml:

Fatal error: Call to undefined function domxml_open_mem() in

thanks,


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Oct 28, 2008 12:04 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
Have you restarted Apache after installing php-xml 5.2.6?

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Oct 28, 2008 12:39 pm 
Offline
Forum User
Forum User

Joined: Wed Jun 06, 2007 10:49 am
Posts: 94
php-xml is installed since so many months ago ;) but never used domxml functions since now


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Oct 28, 2008 1:13 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
What does php -i | grep DOM return?

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Oct 28, 2008 2:13 pm 
Offline
Forum User
Forum User

Joined: Wed Jun 06, 2007 10:49 am
Posts: 94
Here you have:

php -i |grep DOM:


DOM/XML => enabled
DOM/XML API Version => 20031129


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Oct 28, 2008 5:30 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
According to http://www.php.net/manual/en/function.d ... en-mem.php the domxml_open_mem() function is only available in PHP 4, not in PHP 5. The domxml extension was replaced with the dom extension in PHP 5.

Apparently there is a wrapper available at http://alexandre.alapetite.net/doc-alex ... php4-php5/ but if at all possible I'd opt for changing the code to run on PHP5/DOM instead of staying with the PHP4/DOMXML API.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Oct 28, 2008 5:35 pm 
Offline
Forum User
Forum User

Joined: Wed Jun 06, 2007 10:49 am
Posts: 94
OK thanks, I will report that, very appreciate ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group