GetDotted Domains

Viewing Thread:
"XSLT from PHP not working?"

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.

Sun 01/02/09 at 13:17
Regular
"But less irrational"
Posts: 13
Hi

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 10

and 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
Mon 02/02/09 at 14:23
Regular
"But less irrational"
Posts: 13
Eccles wrote:
> 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.
Mon 02/02/09 at 12:40
Staff Moderator
"Aargh! Broken..."
Posts: 1,408
Hello,

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.
Sun 01/02/09 at 13:17
Regular
"But less irrational"
Posts: 13
Hi

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 10

and 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

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

10/10
Over the years I've become very jaded after many bad experiences with customer services, you have bucked the trend. Polite and efficient from the Freeola team, well done to all involved.
Just a quick note to say thanks for a very good service ... in fact excellent service..
I am very happy with your customer service and speed and quality of my broadband connection .. keep up the good work . and a good new year to all of you at freeola.
Matthew Bradley

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.