Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I just installed Linux 9. Now I want to write a page that uses this class: xslt_class which takes a xml file and a xslt file and transform to a html file. This class requires that my php be recompiled using this option: --with-dom. An online instruction says I need to go to
/usr/local/src and type the following command:
./configure --with-dom --with-apache=../apache_1.3.12
to recompile. However, configure is no where to be found. could you please help me activate --with-dom. Thank you very much.
Hello,
My system already has php installed by default. You suggested to download and install it again. I wonder that will cause any problem. If I want to remove it before installing the new one, where would I find it to delete. Thanks.
Grab the source RPM http://ftp.redhat.com/pub/redhat/lin...2-17.2.src.rpm
Install it, you should see a php4.spec file in /usr/src/redhat/SPEC
open it up, under the build() section you should see a list of configure options, add your option there.
to build it, type "rpmbuild -bb php4.spec", install dependencies if required.
After its done you'll see a bunch of php-* packages in /usr/src/redhat/RPMS/i386, reinstall them over your current ones.
Hello,
thank you for the instructions. I did exactly what you said and added --with-dom-xslt=DIRECTORY_OF_XSLT and --with-dom-exslt=DIRECTORY_OF_EXSLT to php.spec. However, I still cannot use class_xslt.php. It complains the following error message:
Fatal error: Call to undefined function: xslt_create() in /home/phamtranquocviet/web/196/hw4/class_xslt.php on line 85.
In windows, I got the same error, and it worked when I turned on the xslt feature by adding the following lines to php.ini:
extension=php_domxml.dll
extension=php_xslt.dll
extension=php_sockets.dll
Now, I checked and made sure similar options were in php.spec. Could you please tell me why it does not work in Redhat? Thank you very much.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.