"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