Using the dom functions in php_domxml.dll

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Using the dom functions in php_domxml.dll

Postby ray429 » 04. November 2007 08:36

Hi,

I have got a problem to use the dom functions in php_domxml.dll.

I am running my files in Ubuntu 7.04 and I installed xampp there.
I have removed the ; in front of extension: php_domxml.dll in php.ini and start xampp again. However, I got the following error:

PHP Warning: Unknown(): Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20020429/php_domxml.dll' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20020429/php_domxml.dll: invalid ELF header in Unknown on line 0

Then I tried to copy the php_domxml.dll file in the xampp that I installed in windows to that directory and set the permissions as 777. However, it still gives me the error when I start or stop xampp.

What could be the problem? I am running php 4.4.7 because this is how it works in windows.

Hope to get an answer asap because this is related to my thesis project.

Thanks

Ray
ray429
 
Posts: 9
Joined: 02. November 2007 02:18

Postby Wiedmann » 04. November 2007 13:24

I have removed the ; in front of extension: php_domxml.dll in php.ini and start xampp again. However, I got the following error:

*.dlls are a Windows thing.

If you don't have this extension (see phpinfo()) in XAMPP out of the box, you have to compile it yourself (with the XAMPP devel package).
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby ray429 » 04. November 2007 17:01

Can you be more specific? I don't really know where to get the files to compile to get the domxml.so file.......

I have been look for the solution of this problem for a long time and I desperately need it very soon.......
ray429
 
Posts: 9
Joined: 02. November 2007 02:18

Postby Wiedmann » 04. November 2007 17:24

I don't really know where to get the files to compile to get the domxml.so file.......

I think it is easier to ask Kai, to include this extension in the next XAMPP release. ;-)

- But you need the sourcecode and must compile PHP4. Because this is IMHO not included in the XAMPP devel package.
("http://de.php.net/downloads.php#v4")

- The files for libxml and libxslt are IMHO included in the package. If not, download and compile it.
("http://www.xmlsoft.org/downloads.html" and "http://xmlsoft.org/XSLT/downloads.html")

- at least you need the sourcecode of the PECL extension DOMXML and must compile it.
("http://pecl.php.net/package/domxml")
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby ray429 » 05. November 2007 06:50

I am still confusing. I have got the domxml ext folder containing php_domxml.c and php_domxml.h.

However, how should I use them to get the domxml.so file?
I tried gcc -Wall -o php_domxml.c and it prompted no input file.

What should I do to solve the problem???
ray429
 
Posts: 9
Joined: 02. November 2007 02:18

Postby Wiedmann » 05. November 2007 10:05

However, how should I use them to get the domxml.so file?

http://de.php.net/manual/en/install.pecl.phpize.php
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby ray429 » 05. November 2007 14:36

The fact is I found that when I tried to execute phpize in the domxml folder, the shell prompted that it is a command not found.

I appreciate your help but I am really stuck with this problem and it annoys me so much...........I have seen this page before but I just have no idea why phpize is not doing anything.......
ray429
 
Posts: 9
Joined: 02. November 2007 02:18

Postby Wiedmann » 05. November 2007 15:52

The fact is I found that when I tried to execute phpize in the domxml folder, the shell prompted that it is a command not found.

Is "phpize" in your $PATH? If not, you must use the complete path in your call.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby ray429 » 06. November 2007 10:58

Can you please tell me the full path of phpize in the php4 package? I have been looking for it for a long time.........
ray429
 
Posts: 9
Joined: 02. November 2007 02:18

Postby Wiedmann » 06. November 2007 12:59

Can you please tell me the full path of phpize in the php4 package?

It should be in the "bin" subdirectory of that directory, you have used as PREFIX in the configure command during your PHP4 build.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby ray429 » 19. November 2007 01:11

When I try to run phpize, I got the following response:

miner@miner-desktop:~/Desktop/php-4.4.7/ext/domxml$ sudo /usr/local/bin/phpize
Configuring for:
PHP Api Version: 20020918
Zend Module Api No: 20020429
Zend Extension Api No: 20050606
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.

miner@miner-desktop:~/Desktop/php-4.4.7/ext/domxml$ echo $PHP_AUTOCONF

What should I do to get this sorted out?
Is that I should specify something in $PHP_AUTOCONF???

Thanks,
Ray
ray429
 
Posts: 9
Joined: 02. November 2007 02:18


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 2 guests