Connecting Tech Pros Worldwide Forums | Help | Site Map

PHP5 XSL issue WinXP/Apache2

badbetty
Guest
 
Posts: n/a
#1: Jul 17 '05
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

Chung Leong
Guest
 
Posts: n/a
#2: Jul 17 '05

re: PHP5 XSL issue WinXP/Apache2



"badbetty" <bch@genie.co.uk> wrote in message
news:5d22dcdd.0407210231.445f949a@posting.google.c om...[color=blue]
> 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[/color]

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.


badbetty
Guest
 
Posts: n/a
#3: Jul 17 '05

re: PHP5 XSL issue WinXP/Apache2


"Chung Leong" <chernyshevsky@hotmail.com> wrote in message news:<i-2dnUxR0dZ6nmLdRVn-sA@comcast.com>...[color=blue]
> "badbetty" <bch@genie.co.uk> wrote in message
> news:5d22dcdd.0407210231.445f949a@posting.google.c om...[color=green]
> > 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[/color]
>
> 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.[/color]

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
Chung Leong
Guest
 
Posts: n/a
#4: Jul 17 '05

re: PHP5 XSL issue WinXP/Apache2


"badbetty" <bch@genie.co.uk> wrote in message
news:5d22dcdd.0407212356.7c3c000a@posting.google.c om...[color=blue]
> Then copied 'php.ini-recommended' to 'windows\system32' renaming it to
> 'php.ini'.[/color]

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


badbetty
Guest
 
Posts: n/a
#5: Jul 17 '05

re: PHP5 XSL issue WinXP/Apache2


"Chung Leong" <chernyshevsky@hotmail.com> wrote in message news:<q86dna0gfcu9HZ_cRVn-uQ@comcast.com>...[color=blue]
> "badbetty" <bch@genie.co.uk> wrote in message
> news:5d22dcdd.0407212356.7c3c000a@posting.google.c om...[color=green]
> > Then copied 'php.ini-recommended' to 'windows\system32' renaming it to
> > 'php.ini'.[/color]
>
> I suppose you've probably got this figure out by now. php.ini should be in
> C:\windows, not C:\windows\system32.[/color]

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

BB
Closed Thread