473,725 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5837

"badbetty" <bc*@genie.co.u k> wrote in message
news:5d******** *************** ***@posting.goo gle.com...
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_dec lared_classes() ) and
see if the class is available.
Jul 17 '05 #2
"Chung Leong" <ch***********@ hotmail.com> wrote in message news:<i-*************** *****@comcast.c om>...
"badbetty" <bc*@genie.co.u k> wrote in message
news:5d******** *************** ***@posting.goo gle.com...
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_dec lared_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\system 32' 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.u k> wrote in message
news:5d******** *************** ***@posting.goo gle.com...
Then copied 'php.ini-recommended' to 'windows\system 32' 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\syst em32.
Jul 17 '05 #4
"Chung Leong" <ch***********@ hotmail.com> wrote in message news:<q8******* *************@c omcast.com>...
"badbetty" <bc*@genie.co.u k> wrote in message
news:5d******** *************** ***@posting.goo gle.com...
Then copied 'php.ini-recommended' to 'windows\system 32' 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\syst em32.


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
2892
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 yast I see that the new apache2 version is installed but not php5, its still on php4 any ideas ??
1
2777
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 mention php5apache2.dll at http://www.php.net/manual/en/install.apache2.php) I usually copy php4apache2.dll and php4ts.dll in the Apache2/modules/
6
4591
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 'c:\php\ext\php_mcrypt.dll'" for all the extensions I enabled. I have verified that the extensions indeed exist in this directory, I've changed extension_dir accordingly and I've copied them to my Windows/system32 directory. What's going on?
4
3263
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 uncommented the 'extension=php_mysql.dll' and copied libmySQL.dll to Windows\System32 (as well as Windows, Apache2\bin, and anywhere else I could think of). Now, whenever Apache starts it gives the following error: PHP Startup: Unable to load...
3
2110
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 with the php module loaded. When I look at this code with my IE browser: <? phpinfo(); ?> or
2
1833
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 when accessing the binary: Warning: Unexpected character in input: '' (ASCII=16) state=1 in /usr/local/bin/php on line 4777 Parse error: parse error, unexpected T_STRING in /usr/local/bin/php on line 4777
8
1661
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 - added the following lines to the httpd.conf file for Apache # Adding module references for PHP LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php
5
5124
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 started, but it won't load. There is also the option of dynamically loading the module at run time of the script. LD() i believe is the call.
12
2590
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 Windows XP Pro) I've moved on to Windows Vista (Home Premium). MySQL and Apache2 have both installed satisfactorily, but I'm having problems with PHP5. I downloaded the PHP5 Windows installer (the .msi file) for 32-bit Windows, which is supposed...
0
8888
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9257
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9176
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8097
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.