How to compile PHP so to allow XML and XSLT ?
| From: | gayard at ig dot com dot br | Date: | Thu, 06 May 2004 14:06:23 +0000 |
| Subject: | How to compile PHP so to allow XML and XSLT ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-185526@lists.php.net to get a copy of this message | ||
Hi all.
My PHP is compiled with these options:
./configure --with-mysql=/usr --with-gettext
--with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/php5
--enable-cli --with-xml --enable-xslt --with-xslt-sablot
It compiled just fine ! Not a single complaint about any library !
I have just written this little script to try out XML and XSLT:
<?php
$xsltproc = xslt_create();
$xslt_result = xslt_process(
$xsltproc,
'/home/leonel/public_html/input.xml',
'/home/leonel/public_html/input.xsl');
xslt_free($xsltproc);
echo $xslt_result;
?>
However, PHP does not seem to accept the functions:
Fatal error: Call to undefined function xslt_create() in
/home/leonel/public_html/testeXLST.php on line 2
I am using PHP5.0.0RC2.
Is everything all right ?
Thanks
Leonel
_________________________________________________________
Voce quer um iGMail protegido contra vírus e spams?
Clique aqui: http://www.igmailseguro.ig.com.br