473,385 Members | 1,925 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,385 software developers and data experts.

Fatal error: Call to undefined function xslt_create()

15
Hi Everybody,
I am getting the below error

Fatal error: Call to undefined function xslt_create()

In my phpinfo page it shows that xsl is enabled. What might be the problem?.I am using php 5 and apache server 2.2 . Please help me out.


Regards,
Raj
Jun 27 '08 #1
10 8360
realin
254 100+
i m not very sure but did u read the manual properly. Because it says that you ned some Sablot library

cheers !!
Jun 27 '08 #2
myshona
15
Hi,

Thanks for the reply. I do have the sablot library. I am not able to figure out where is the problem.


Thanks,
RAJ
Jun 27 '08 #3
fjm
348 100+
Have a look at this Raj, this may help you:

http://www.php.net/xslt_create
Jun 27 '08 #4
myshona
15
Have a look at this Raj, this may help you:

http://www.php.net/xslt_create
I have copied sablot.dll, Expat.dll, iconv.dll to system32 directory and have set the path in environment variables for all these DLL's. Still not working. Please help
Jun 27 '08 #5
myshona
15
Need you suggestions. Please help
Jun 27 '08 #6
myshona
15
I am still stuck with this. Need your suggestions
Jun 30 '08 #7
fjm
348 100+
Raj,

When you install php on windows, you must copy 3 files into the windows\system32 directory before using xslt_create()

These files are in your installed php/dlls directory
expat.dll
sablot.dll
iconv.dll

Then edit your php.ini file (c:\windowsdir\php.ini)
and uncomment the line extension=php_xslt.dll (remove the ; from the beginning)

Restart php and apache, it should work ;)

Let me know if that helped.

EDIT:
In my windows installation, my PHP dll directory is NOT under windows\system32 but rather under C:\Program Files\PHP\ext

I believe you placed those files in the wrong place.
Jun 30 '08 #8
myshona
15
Raj,

When you install php on windows, you must copy 3 files into the windows\system32 directory before using xslt_create()

These files are in your installed php/dlls directory
expat.dll
sablot.dll
iconv.dll

Then edit your php.ini file (c:\windowsdir\php.ini)
and uncomment the line extension=php_xslt.dll (remove the ; from the beginning)

Restart php and apache, it should work ;)

Let me know if that helped.
Thanks for the reply. I had done all these and also phpinfo page was showing that xsl is enabled. The way to sort this out in PHP 5 is when you are transforming the file from one format to other format (xml->php) use the below code for the transformation its for php 5

$xml = new DomDocument;
$xml->load($xmlfilename);

$xsl = new DomDocument;
$xsl->load($xsltfilename);

$proc = new xsltprocessor;
$proc->importStyleSheet($xsl);
$result = $proc->transformToXML($xml);

After changing the code dont forget to comment extension=php_domxml.dll in the ini file and restart the server. Now it should work.
Jun 30 '08 #9
fjm
348 100+
I updated my last post in case you don't get it working. We seemed to have posted at the same time. :)
Jun 30 '08 #10
myshona
15
Raj,

EDIT:
In my windows installation, my PHP dll directory is NOT under windows\system32 but rather under C:\Program Files\PHP\ext

I believe you placed those files in the wrong place.
Wherever the dll's are either in windows/system32 or in ext folder of php the extension directory in the ini file has to be changed. It works both the ways.
Jun 30 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Daniel Hansen | last post by:
I am getting a "Fatal error: Call to undefined function: imagecreatefromjpeg() in..." error in one of my scripts, and after doing a bit of searching on the 'net I found various messages relating to...
5
by: Randell D. | last post by:
Folks, I feel like pulling my hair out - I tried unsuccessfully over the past few days to install ImagMagick but because of version conflicts and missing libraries I had to give up. I originally...
4
by: gc | last post by:
I'm a PHP and MySQL newbie. I have a feeling a lot of you may have seen this before. I'm teaching myself PHP/MySQL and trying to setup a guestbook. I'm running latest versions of Apache, PHP and...
8
by: Tim Tyler | last post by:
I'm getting fatal errors when executing code - and my error handler is failing to trap them - so I get no stack backtrace :-( The error I am getting is: "Fatal error: Call to a member function...
1
by: drewmania001 | last post by:
i've read various info on the web including the following http://php.mirrors.ilisys.com.au/manual/en/ref.mysqli.php mySQL Version 4.1.16 PHP Version 5.1.2 with Zend Engine v2.1.0 OS Windows...
2
by: salvadorvp | last post by:
Hi, I have the following code that gives me this odd error message at a line of code inside the PEAR libraries: "Fatal error: Call to undefined function: MDB2_Driver_mssql::getMessage(). in...
9
by: java | last post by:
Hey there, I just removed an elderly PHP4-Installation from my Windows-Box and installed PHP 5.2.1. I used the PHP4-Module as local batchfile- interpreter by E:\ersDHCP>php ./extractLog.php ...
1
by: myshona | last post by:
Hi Everybody, I am getting the error : Fatal error: Call to undefined function xslt_create().I am using php 5 and Apache 2.2 server.Please let me know how to solve this....
4
by: nickyspace | last post by:
HI all I have a little issue with this php code. Below is the code CODE: PHP 1.<?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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.