Re: how to know when a php library is installed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lizet Pena de Sola wrote:
Hello all:
I need to test whether a library is installed with php or not. In this
case it's the tidy library I need for a project.

<?php
if(function_exists('tidy_get_output')) {
	// Tidy is installed
} else {
	// Tidy is not installed, contact your host
}
?>

Jasper

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux