Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 09-20-2007, 06:09 PM xslt_create Problem
Themodem's Avatar
Average Talker

Posts: 22
Location: England
Trades: 0
Hey all, im trying to mess around with xslt and have run into a problem.

Im trying to use xslt_create() like this

PHP Code:
$parser xslt_create();
$html xslt_process($parser'Pages/' $Input['Section'] . '.xml''Pages/' $Input['Section'] . '.xsl');
xslt_free($parser);

echo 
$html
the problem is Fatal error: Call to undefined function xslt_create()

Ive checked out php.ini and extension=php_xsl.dll is enabled.

Any ideas?

Thanks Lee
Themodem is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-21-2007, 04:36 PM Re: xslt_create Problem
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
Personally I would have a chat with your web host.

xslt_create() could not work, put a:

PHP Code:
if(function_exists('xslt_create') and function_exists('xslt_process') and function_exists('xslt_free')){
$parser xslt_create();
$html xslt_process($parser'Pages/' $Input['Section'] . '.xml''Pages/' $Input['Section'] . '.xsl');
xslt_free($parser);

echo 
$html;  
} else {
// do something else

Or if you know roughly what they do:

PHP Code:
// If it does not exists, make it ya' self.
if(!function_exists('xslt_create')){
function 
xslt_create(){}
}
if(!
function_exists('xslt_process')){
function 
xslt_process(){}
}
if(!
function_exists('xslt_free')){
function 
xslt_free(){}
}

// Now do the code :)
$parser xslt_create();
$html xslt_process($parser'Pages/' $Input['Section'] . '.xml''Pages/' $Input['Section'] . '.xsl');
xslt_free($parser);

echo 
$html
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE

Last edited by rogem002; 09-21-2007 at 04:39 PM..
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Reply     « Reply to xslt_create Problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10119 seconds with 12 queries