473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

PHP5 XSL issue WinXP/Apache2

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
4 5822

"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
"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
"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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: michael newport | last post by:
I did the following as instructed in the docs. (see below) everything seemed to install ok and I started apache with no complaints, but, 1)I do not see a process for apache using ps -ef 2) In...
1
by: FL | last post by:
Hi, I'm tring to *test* php5 beta2 as module with Apache 2.0.48 and win2k (I know, I'm nuts :o) First, there is no php5apache2.dll in the beta2 package but a php4apache2.dll (php.net doc...
6
by: somaBoy MX | last post by:
I'm configuring PHP5 on my WinXP pro machine as an Apache2 handler. However when I start apache I get system errormessages like "PHP Shutdown: Unable to load dynamic library...
4
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...
3
by: Erick Howenstine | last post by:
I'm installing PhP5 on WinXP, with Apache2. In my Apache's httpd.conf file I have added LoadModule php5_module c:/php-5/php5apache2.dll and moved the .ini file to C:/Windows/php.ini Apache works...
2
by: Jupiter's Song | last post by:
(In Apache2) I have this setup and using the new CGI daemon interface... no probs. However the binary is accessible via the browser. I suppose I wouldn't even make this an issue but I get this...
8
by: Maddman75 | last post by:
I'm having trouble getting PHP installed on my system. I downloaded the zip file and extracted the files to C:\php. Following the documentation, I did the following - added C:\php to my PATH...
5
by: Pete Marsh | last post by:
Wondering if anyone can recomend some sample code for dynamically loading the GD module. I have tried setting the extension dir in php.ini, and loading the GD module from there when apache is...
12
by: Alan M Dunsmuir | last post by:
After having worked with Apache/MySQL/PHP for a year or so under Linux I need, purely for convenience, to set up a parallel platform under Windows. Unfortunately, since I last did this (using...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.