By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,747 Members | 1,671 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,747 IT Pros & Developers. It's quick & easy.

PDFlib detection?

P: n/a
Greetings,

Apologies in advance for the crosspost.

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?

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Wed, 07 Apr 2004 11:59:39 -0700, bonehead <se**********@here.org> wrote:
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?


function_exists on one of the functions defined by that extension?

http://uk.php.net/manual/en/function...ion-exists.php

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #2

P: n/a
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
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.