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..
|