Matthew Luchak wrote:
> PHP 4.1.2
> SunOS web-unix1 5.7
> apache_1.3.22
> I'm trying to parse XML/XSL on a shared  box and I'm using :
> $xslthandler = xslt_create() or die("Can't create XSLT handle!");
> to test for sablotron.  Unfortunately I just get a "Call to undefined 
> function" error which I guess means no - there's no sablotron installed 
> - but I was wondering if there is another way to test for Sablotron?  I 
> need a little quicker turnaround time then passing from voicemail to 
> voicemail at my ISP ;)
> thanks,

You could use function_exists() to test if xslt_create() is a defined
function.  If not, then error out.  If so, carry on.  It's not limited
to sablotron checking - check for GD, PDF, etc.

Michael Kimsal
PHP support when you need it

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to