473,603 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Php5 - xsl extension not working

I can tell I'm not alone in my confusion, as I've been using Google to
find a solution to this problem and all I can find is the same question,
but no solution.

I am running Php 5.25 (Windows binary from php.net) as an Apache 2.0.55
module on Windows XP.

I have enabled the xsl extension - php_xsl.dll - in php.ini and indeed,
when I look at phpinfo I see all the needed libraries (i.e., DOM/XML,
libXML, XSL, libxslt) are enabled.

Yet, if I try to call xslt_create(), I get:
"Fatal error: Call to undefined function xslt_create() in ....."

Any idea what I need to do to get this working?

Detail from phpinfo:
-------------------------
dom
DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.26
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled

libxml
libXML support active
libXML Version 2.6.26
libXML streams enabled

xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.26

xsl
XSL enabled
libxslt Version 1.1.17
libxslt compiled against libxml Version 2.6.26
EXSLT enabled
libexslt Version 0.8.13
-------------------------

--
*************** **************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Nothing he's got he really needs
Twenty first century schizoid man.
*************** *************** *****

Jun 2 '08 #1
7 4414
On Mon, 05 May 2008 05:11:51 +0200, Chuck Anderson
<we************ @seemy.sigwrote :
I can tell I'm not alone in my confusion, as I've been using Google to
find a solution to this problem and all I can find is the same question,
but no solution.

I am running Php 5.25 (Windows binary from php.net) as an Apache 2.0.55
module on Windows XP.

I have enabled the xsl extension - php_xsl.dll - in php.ini and indeed,
when I look at phpinfo I see all the needed libraries (i.e., DOM/XML,
libXML, XSL, libxslt) are enabled.

Yet, if I try to call xslt_create(), I get:
"Fatal error: Call to undefined function xslt_create() in ....."

Any idea what I need to do to get this working?

Detail from phpinfo:
-------------------------
dom
libxml
xml
xsl
XSL enabled
libxslt Version 1.1.17
libxslt compiled against libxml Version 2.6.26
EXSLT enabled
libexslt Version 0.8.13
And XSLT?

http://nl2.php.net/manual/en/xslt.installation.php
Check out sablot.dll, expat.dll, and iconv.dll.

P.S: for PHP >= 5 I'd recommend XSL instead of XSLT.
--
Rik Wasmus
Jun 2 '08 #2
Chuck Anderson schreef:
I can tell I'm not alone in my confusion, as I've been using Google to
find a solution to this problem and all I can find is the same question,
but no solution.

I am running Php 5.25 (Windows binary from php.net) as an Apache 2.0.55
module on Windows XP.

I have enabled the xsl extension - php_xsl.dll - in php.ini and indeed,
when I look at phpinfo I see all the needed libraries (i.e., DOM/XML,
libXML, XSL, libxslt) are enabled.

Yet, if I try to call xslt_create(), I get:
"Fatal error: Call to undefined function xslt_create() in ....."

Any idea what I need to do to get this working?
By looking at the manual: http://www.php.net/xsl

XSL in PHP5 has been implemented in the XSLTProcessor class...
JW
Jun 2 '08 #3
Janwillem Borleffs wrote:
Chuck Anderson schreef:
>I can tell I'm not alone in my confusion, as I've been using Google to
find a solution to this problem and all I can find is the same question,
but no solution.

I am running Php 5.25 (Windows binary from php.net) as an Apache 2.0.55
module on Windows XP.

I have enabled the xsl extension - php_xsl.dll - in php.ini and indeed,
when I look at phpinfo I see all the needed libraries (i.e., DOM/XML,
libXML, XSL, libxslt) are enabled.

Yet, if I try to call xslt_create(), I get:
"Fatal error: Call to undefined function xslt_create() in ....."

Any idea what I need to do to get this working?


By looking at the manual: http://www.php.net/xsl

XSL in PHP5 has been implemented in the XSLTProcessor class
...
JW
Okay, .... thanks. I had tried a quick test of that previously and it
failed, but I must have misspelled something, as the XSLTProcessor class
does indeed work. Now all I need to do is get my web host to enable
this, as it seems the best way to ensure an xml -xsl transformation is
to do it server side and NOT rely on the browser or JavaScript.

I'm having fun experimenting with this stuff.

--
*************** **************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Nothing he's got he really needs
Twenty first century schizoid man.
*************** *************** *****

Jun 2 '08 #4
Rik Wasmus wrote:
On Mon, 05 May 2008 05:11:51 +0200, Chuck Anderson
<we************ @seemy.sigwrote :

>I can tell I'm not alone in my confusion, as I've been using Google to
find a solution to this problem and all I can find is the same question,
but no solution.

I am running Php 5.25 (Windows binary from php.net) as an Apache 2.0.55
module on Windows XP.

I have enabled the xsl extension - php_xsl.dll - in php.ini and indeed,
when I look at phpinfo I see all the needed libraries (i.e., DOM/XML,
libXML, XSL, libxslt) are enabled.

Yet, if I try to call xslt_create(), I get:
"Fatal error: Call to undefined function xslt_create() in ....."

Any idea what I need to do to get this working?

Detail from phpinfo:
-------------------------
dom

>libxml

>xml

>xsl
XSL enabled
libxslt Version 1.1.17
libxslt compiled against libxml Version 2.6.26
EXSLT enabled
libexslt Version 0.8.13

And XSLT?

I seem to have it all enabled now I was trying to use the Php4 functions
in Php5.
http://nl2.php.net/manual/en/xslt.installation.php
Check out sablot.dll, expat.dll, and iconv.dll.
Those are for the Php4 implementation, only (as far as I can tell).
P.S: for PHP >= 5 I'd recommend XSL instead of XSLT.
I'm not sure what you mean here, but I would like to understand, as I
think I'm on to a new way of doing things (for me) by converting MySQL
data to XML and using XSL transform to create the HTML output.

How do I "use XSL instead of XSLT" ...? I thought they were basically
the same thing . Can you be more precise .... or point me to something
that explains what you mean.

--
*************** **************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Nothing he's got he really needs
Twenty first century schizoid man.
*************** *************** *****

Jun 2 '08 #5
On Tue, 06 May 2008 08:00:02 +0200, Chuck Anderson
<we************ @seemy.sigwrote :
Rik Wasmus wrote:
>On Mon, 05 May 2008 05:11:51 +0200, Chuck Anderson
<we*********** *@seemy.sigwrot e:

>>I can tell I'm not alone in my confusion, as I've been using Google
to find a solution to this problem and all I can find is the same
question, but no solution.

I am running Php 5.25 (Windows binary from php.net) as an Apache
2.0.55 module on Windows XP.

I have enabled the xsl extension - php_xsl.dll - in php.ini and
indeed, when I look at phpinfo I see all the needed libraries (i.e.,
DOM/XML, libXML, XSL, libxslt) are enabled.

Yet, if I try to call xslt_create(), I get:
"Fatal error: Call to undefined function xslt_create() in ....."

Any idea what I need to do to get this working?

Detail from phpinfo:
-------------------------
dom

>>libxml

>>xml

>>xsl
XSL enabled
libxslt Version 1.1.17
libxslt compiled against libxml Version 2.6.26
EXSLT enabled
libexslt Version 0.8.13

And XSLT?


I seem to have it all enabled now I was trying to use the Php4 functions
in Php5.
>http://nl2.php.net/manual/en/xslt.installation.php
Check out sablot.dll, expat.dll, and iconv.dll.

Those are for the Php4 implementation, only (as far as I can tell).
>P.S: for PHP >= 5 I'd recommend XSL instead of XSLT.

I'm not sure what you mean here,
Instead of using these: http://nl2.php.net/manual/en/ref.xslt.php
Use these: http://nl2.php.net/manual/en/class.xsltprocessor.php
but I would like to understand, as I think I'm on to a new way of doing
things (for me) by converting MySQL data to XML and using XSL transform
to create the HTML output.
Be very sure you _need_ that. IMHO, XML is usefull for storage (which you
could not need because you allready have a database for storage, but
perhaps some caching be usefull), or communication/data sharing between
scripts, which you also don't mention.

In most projects, I'd say the conversion database -XML -HTML would be
an unnecessary step, and database -HTML is just a lot less overhead.
--
Rik Wasmus
Jun 2 '08 #6
Rik Wasmus wrote:
On Tue, 06 May 2008 08:00:02 +0200, Chuck Anderson
<we************ @seemy.sigwrote :

>Rik Wasmus wrote:
>>On Mon, 05 May 2008 05:11:51 +0200, Chuck Anderson
<we********** **@seemy.sigwro te:

I can tell I'm not alone in my confusion, as I've been using Google
to find a solution to this problem and all I can find is the same
question, but no solution.

I am running Php 5.25 (Windows binary from php.net) as an Apache
2.0.55 module on Windows XP.

I have enabled the xsl extension - php_xsl.dll - in php.ini and
indeed, when I look at phpinfo I see all the needed libraries (i.e.,
DOM/XML, libXML, XSL, libxslt) are enabled.

Yet, if I try to call xslt_create(), I get:
"Fatal error: Call to undefined function xslt_create() in ....."

Any idea what I need to do to get this working?

Detail from phpinfo:
-------------------------
dom

libxml

xml

xsl
XSL enabled
libxslt Version 1.1.17
libxslt compiled against libxml Version 2.6.26
EXSLT enabled
libexslt Version 0.8.13
And XSLT?
I seem to have it all enabled now I was trying to use the Php4 functions
in Php5.

>>http://nl2.php.net/manual/en/xslt.installation.php
Check out sablot.dll, expat.dll, and iconv.dll.

Those are for the Php4 implementation, only (as far as I can tell).

>>P.S: for PHP >= 5 I'd recommend XSL instead of XSLT.

I'm not sure what you mean here,

Instead of using these: http://nl2.php.net/manual/en/ref.xslt.php
Use these: http://nl2.php.net/manual/en/class.xsltprocessor.php

>but I would like to understand, as I think I'm on to a new way of doing
things (for me) by converting MySQL data to XML and using XSL transform
to create the HTML output.

Be very sure you _need_ that. IMHO, XML is usefull for storage (which you
could not need because you allready have a database for storage, but
perhaps some caching be usefull), or communication/data sharing between
scripts, which you also don't mention.

In most projects, I'd say the conversion database -XML -HTML would be
an unnecessary step, and database -HTML is just a lot less overhead.
What you say does make sense to me. I have only just now delved into xml
- xsl so I could include it in my resume. And indeed, it seems a pretty
simple tool to use. Where I think it's taking me now, as I explore my
possibilities with it, is to show me how to modularize my Php - html
scripts better (like the xsl templates).

The next thing I think I'll try with xml/xsl is a simple customized CMS
(for instance, one that lets a site owner change a Links page). I think
something like that may be easier than using MySQL. Either way, I want
the experience so I can include it on my resume.

I'm still pondering how to merge Php and xml/xsl. My guess is that I
could use Php to create xsl files on the fly .... or to include them on
the fly. But the more I think about that, the more I think, like you
say, that simply modularizing my Php content templates (to be like like
xsl template files) and getting my content from MySQL will be the most
flexible and efficient.

I appreciate the help and advice.

--
*************** **************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Nothing he's got he really needs
Twenty first century schizoid man.
*************** *************** *****

Jun 2 '08 #7
Chuck Anderson wrote:
Rik Wasmus wrote:
>On Tue, 06 May 2008 08:00:02 +0200, Chuck Anderson
<we*********** *@seemy.sigwrot e:

>>Rik Wasmus wrote:

On Mon, 05 May 2008 05:11:51 +0200, Chuck Anderson
<we********* ***@seemy.sigwr ote:

I can tell I'm not alone in my confusion, as I've been using
Google to find a solution to this problem and all I can find is
the same question, but no solution.
>
I am running Php 5.25 (Windows binary from php.net) as an Apache
2.0.55 module on Windows XP.
>
I have enabled the xsl extension - php_xsl.dll - in php.ini and
indeed, when I look at phpinfo I see all the needed libraries
(i.e., DOM/XML, libXML, XSL, libxslt) are enabled.
>
Yet, if I try to call xslt_create(), I get:
"Fatal error: Call to undefined function xslt_create() in ....."
>
Any idea what I need to do to get this working?
>
Detail from phpinfo:
-------------------------
dom
>
>

libxml
>
>

xml
>
>

xsl
XSL enabled
libxslt Version 1.1.17
libxslt compiled against libxml Version 2.6.26
EXSLT enabled
libexslt Version 0.8.13
>
>
And XSLT?

I seem to have it all enabled now I was trying to use the Php4
functions in Php5.
http://nl2.php.net/manual/en/xslt.installation.php
Check out sablot.dll, expat.dll, and iconv.dll.
Those are for the Php4 implementation, only (as far as I can tell).
P.S: for PHP >= 5 I'd recommend XSL instead of XSLT.
I'm not sure what you mean here,

Instead of using these: http://nl2.php.net/manual/en/ref.xslt.php
Use these: http://nl2.php.net/manual/en/class.xsltprocessor.php

>>but I would like to understand, as I think I'm on to a new way of
doing things (for me) by converting MySQL data to XML and using XSL
transform to create the HTML output.

Be very sure you _need_ that. IMHO, XML is usefull for storage (which
you could not need because you allready have a database for storage,
but perhaps some caching be usefull), or communication/data sharing
between scripts, which you also don't mention.

In most projects, I'd say the conversion database -XML -HTML would
be an unnecessary step, and database -HTML is just a lot less
overhead.

What you say does make sense to me. I have only just now delved into xml
- xsl so I could include it in my resume. And indeed, it seems a pretty
simple tool to use. Where I think it's taking me now, as I explore my
possibilities with it, is to show me how to modularize my Php - html
scripts better (like the xsl templates).

The next thing I think I'll try with xml/xsl is a simple customized CMS
(for instance, one that lets a site owner change a Links page). I think
something like that may be easier than using MySQL. Either way, I want
the experience so I can include it on my resume.

I'm still pondering how to merge Php and xml/xsl. My guess is that I
could use Php to create xsl files on the fly .... or to include them on
the fly. But the more I think about that, the more I think, like you
say, that simply modularizing my Php content templates (to be like like
xsl template files) and getting my content from MySQL will be the most
flexible and efficient.

I appreciate the help and advice.
Rik is correct. XML is not intended to be an intermediate step between
the database and HTML. Rather, it is intended as a means for
machine-to-machine transfer of data, i.e. one webserver picking up XML
data from another and displaying it in a specific format.

Using XML as an intermediate step between your database and HTML is an
unnecessary step which adds much more overhead to the server.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Jun 2 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4751
by: Spidah | last post by:
Looking at the list of changes made in PHP5 one of them is "Removed the bundled MySQL client library" Does anyone know exactly what this means? I assume we will still be able to code for MySQL as we do now? Thanks Hamilton
5
2794
by: Tim Tyler | last post by:
I'm sure this is a FAQ - but I could not find a coherent statement of the answer: Some of my clients want PHP4. Other ones want PHP5. Can I run both PHP4 and PHP5 under the same instance of Apache - both on port 80 - using different file extensions to distinguish between them? --
11
10573
by: neur0maniak | last post by:
Hi, I've been eager to try out PHP5, so I've dumped it on my little dev machine. It's running WinXP with IIS5. I've put the php-cgi.exe in the "mappings" page as I'm used to doing with PHP4. I've got my php.ini all set in C:\Windows. I created an index.php containing: <?php phpinfo(); ?> When I try to view the page, I get "HTTP 400 - Bad Request".
4
5831
by: badbetty | last post by:
Dear Googlers I have installed PHP5 to run on WinXP against Apache 2. It works! ie. I have tested a few simple scripts and a basic xml document parse. I now want to try the XSL extension so I can transform xml docs. Having copied the php_xsl.dll to a directory where it can be found and done the uncommenting in php.ini, it still will not work. The script I
0
2718
by: User1001 | last post by:
I have been trying to enable/use specific OpenSSL extensions that I use in generating certificates manually, via PHP5 + php5-openssl module/extension. Filling out the "configargs" array with 'x509_extensions' and/or 'req_extensions' fails to generate/sign a certificate with the desired X.509 extensions included in the signed certificate. The extensions in my "openssl.cnf" file work just fine with manual OpenSSL commands. Also, I am...
4
3260
by: >>-Archer--> | last post by:
I've upgraded to PHP5 from PHP4 on a Win2K3 Server and now I can't use the MySQL databases. I checked the documentation, to discover that MySQL libraries are no longer bundled with PHP. So I've uncommented the 'extension=php_mysql.dll' and copied libmySQL.dll to Windows\System32 (as well as Windows, Apache2\bin, and anywhere else I could think of). Now, whenever Apache starts it gives the following error: PHP Startup: Unable to load...
0
2306
by: israelekpo | last post by:
phpPaypalPro version 0.2.0 Released The second version of phpPaypalPro has been released. phpPaypalPro is an object-oriented framework developed in PHP5 to integrate easily with the Website Payments Pro SOAP 1.1 API from Paypal. The framework is very easy to deploy, allowing you to execute any of the operations from the API in just a few lines of code. It's so easy to use, even a caveman can do it! phpPaypalPro deploys the built-in...
19
2356
by: McKirahan | last post by:
I am working in two environments neither configuration of which I can change; one's my Web host the other a client. My Web host requires the use of the ".php5" extension to use PHP v5.1.4; where ".php" is used for PHP v4.3.11. My client supports PHP v5.2.0 with the ".php" extension. Is there a way to reliably determine if the ".php5" extension must be used on a server? Perhaps via a "phpinfo()" value?
8
1593
by: Tony B | last post by:
Hi, I'm trying out my local copy of a site that uses php4, mysql,apache2. I've moved it from a php4 machine to a php5 machine, and it doesn't work at all now. A couple of other php4 sites I've moved, which are straight php and do not use mysql are working fine though. So it seems that the mysql php interface maybe the problem. Are there any site/docs which cover the differences between php4 and php5, and likely problems that may occur,...
0
7928
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8415
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8060
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6735
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5441
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1514
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1259
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.