orbitalnets Posted March 15, 2008 Share Posted March 15, 2008 Hi All, I am trying to i file i made with the help of a PHP xml book. I copy this file as it is from the tutorial. Is my PHP setting to ready to use the XsltProcessor? Here is my system info: http://www.orbitalnets.com/info.php Here is the code: <?php $xmlProc = new XsltProcessor(); $xslt = new DomDocument(); $xslt -> load("movies.xslt"); $xmlProc -> importStylesheet($xslt); $xml = new DomDocument(); $xml -> load("movies.xml"); if ($html = $xmlProc -> transformToXML($xml)) { echo $html; } else { trigger_error(E_USER_ERROR); } ?> Should I install something for it to work? I can not even see any error logs. Also I noticed that I can not debug. Not even if I turn on errors in my code with ini_set("error_reporting","E_ALL"); I have errors turn off in php.ini with with that command I am supposed to see errors right? REgards, Dwayne Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted March 15, 2008 Share Posted March 15, 2008 it doesn't look like your PHP has XSL compiled in: From http://us.php.net/xsl: "PHP 5 includes the XSL extension by default and can be enabled by adding the argument --with-xsl[=DIR] to your configure line. DIR is the libxslt installation directory." your config info does not show the compile argument --with-xsl Quote Link to comment Share on other sites More sharing options...
orbitalnets Posted March 15, 2008 Author Share Posted March 15, 2008 Ok but where should I insert this argument? i tried to look for it in the php.ini for could not find it. Thx. Dwayne Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.