The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Has anyone got XSLT working with PHP on the freeola servers?
I'm getting the error:
Fatal error: Call to undefined function xslt_create() in /home/sites/vip.../edit.php5 on line 10and the line in question is:
$xsltProcessor = xslt_create();I can use XSLT on my own server (Indigoperl, which uses libxslt / libexslt for XSLT), using the XSLTProcessor() function, but phpInfo() says Freeola uses Sablotron, which I thought needs xslt_create() instead. (XSLTProcessor() doesn't work, in any case.)
Incidentally, Freeola's PHP4 and PHP5 phpInfo() readouts both have on the Configure Command line:
'--enable-xslt' '--with-xslt-sablot'but only PHP4 has an XSLT table further down the page saying it has been enabled.
Whether I use .php (for PHP4) or .php5 (for PHP5) file extensions, I can't get any combination of file extensions / XSLT functions to work.
So, is XSLT really enabled or am I missing something?
Thanks
> You will need to modify your script to use the newer XSL object
> methods, such as:
>
>
$xsltProcessor = new XSLTProcessor(); instead of>
$xsltProcessor = xslt_create();>
> I have enable XSL support on the VIP servers so this should
> work.
Thanks, Eccles.
My original code was using the PHP5 XSLTProcessor() call, but because I couldn't get it to work on the Freeola server (it was saying
Call to undefined function XSLTProcessor() ), I switched to PHP4 code to see if that would work.Anyhow, I've converted the code back to PHP5 now and it's working, so thanks again.
Judging from the file path you have given you are using our VIP hosting. These servers only run the latest PHP5 and do not support PHP4. PHP5 does not support the PHP4 method of using XSLT. Please see the notes on PHP XSLT.
You will need to modify your script to use the newer XSL object methods, such as:
$xsltProcessor = new XSLTProcessor(); instead of $xsltProcessor = xslt_create();I have enable XSL support on the VIP servers so this should work.
Has anyone got XSLT working with PHP on the freeola servers?
I'm getting the error:
Fatal error: Call to undefined function xslt_create() in /home/sites/vip.../edit.php5 on line 10and the line in question is:
$xsltProcessor = xslt_create();I can use XSLT on my own server (Indigoperl, which uses libxslt / libexslt for XSLT), using the XSLTProcessor() function, but phpInfo() says Freeola uses Sablotron, which I thought needs xslt_create() instead. (XSLTProcessor() doesn't work, in any case.)
Incidentally, Freeola's PHP4 and PHP5 phpInfo() readouts both have on the Configure Command line:
'--enable-xslt' '--with-xslt-sablot'but only PHP4 has an XSLT table further down the page saying it has been enabled.
Whether I use .php (for PHP4) or .php5 (for PHP5) file extensions, I can't get any combination of file extensions / XSLT functions to work.
So, is XSLT really enabled or am I missing something?
Thanks