By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,827 Members | 2,155 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,827 IT Pros & Developers. It's quick & easy.

PHP5 XSL issue WinXP/Apache2

P: n/a
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
use generates the following error on the php line

....
$proc = new XSLTProcessor;
....
Fatal error: Class 'XSLTProcessor' not found in >>the script file
name<<.
Any ideas for sorting this will be most welcome.

Thank you in advance
BB
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"badbetty" <bc*@genie.co.uk> wrote in message
news:5d**************************@posting.google.c om...
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
use generates the following error on the php line

...
$proc = new XSLTProcessor;
...
Fatal error: Class 'XSLTProcessor' not found in >>the script file
name<<.
Any ideas for sorting this will be most welcome.

Thank you in advance
BB


Works fine here. Are you sure your extension path is correct? Maybe you're
not editing the correct php.ini? Do a print_r(get_declared_classes()) and
see if the class is available.
Jul 17 '05 #2

P: n/a
"Chung Leong" <ch***********@hotmail.com> wrote in message news:<i-********************@comcast.com>...
"badbetty" <bc*@genie.co.uk> wrote in message
news:5d**************************@posting.google.c om...
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
use generates the following error on the php line

...
$proc = new XSLTProcessor;
...
Fatal error: Class 'XSLTProcessor' not found in >>the script file
name<<.
Any ideas for sorting this will be most welcome.

Thank you in advance
BB


Works fine here. Are you sure your extension path is correct? Maybe you're
not editing the correct php.ini? Do a print_r(get_declared_classes()) and
see if the class is available.


Hi Chung - thanks for the response.

Nothing doing I'm afraid - the class is not showing up.

I unzipped php 5 to 'c:\php5'.
Then copied 'php.ini-recommended' to 'windows\system32' renaming it to
'php.ini'.
Changed the 'doc_root' to point to the 'htdocs' location.
In the extensions part I removed the ';' to the 'extension =
php_xsl.dll'.
Then copied the actual 'php_xsl.dll' from the dir 'ext', to be with
the others i.e. in 'c:/php5'.

The extension dir setting was left as original i.e. './'
(later tried setting it as 'c:/php5' and even 'c:/php5/').

The 'load module' bit was added to the 'httpd.conf' file in Apache2 as
'LoadModule php5_module c:/php5/php5apache2.dll'.
The application/mime type setting was done as per instructions.

That's it really. Still not working for some reason. Have I missed
something obvious?

As I said - php does run the simple test scripts I did (inc. a simple
xml file parse). It just seems to be the extensions that will not
load.

Looking forward to some more ideas if any?!

Thanks again.
BB
Jul 17 '05 #3

P: n/a
"badbetty" <bc*@genie.co.uk> wrote in message
news:5d**************************@posting.google.c om...
Then copied 'php.ini-recommended' to 'windows\system32' renaming it to
'php.ini'.


I suppose you've probably got this figure out by now. php.ini should be in
C:\windows, not C:\windows\system32.
Jul 17 '05 #4

P: n/a
"Chung Leong" <ch***********@hotmail.com> wrote in message news:<q8********************@comcast.com>...
"badbetty" <bc*@genie.co.uk> wrote in message
news:5d**************************@posting.google.c om...
Then copied 'php.ini-recommended' to 'windows\system32' renaming it to
'php.ini'.


I suppose you've probably got this figure out by now. php.ini should be in
C:\windows, not C:\windows\system32.


Many thanks for your help Chung. I can see the module and run the scripts etc.
Thanks again.

BB
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.