bonehead <se**********@here.org> wrote in message
news:<40**************@here.org>...
I would like to determine if the PDFlib library has been installed on a
shared server which I do not administer. Is there a command I can run on
a Unix server to detect if PDFlib is installed?
Option 1:
if (function_exists('pdf_new')) {
echo "PDFlib is available.<br />\n";
} else {
echo "PDFlib is not available.<br />\n";
}
Option 2:
if (extension_loaded('pdf')) {
echo "PDFlib is available.<br />\n";
} else {
echo "PDFlib is not available.<br />\n";
}
Cheers,
NC