473,387 Members | 1,464 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,387 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 5820

"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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.