PDFlib detection?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bonehead

    PDFlib detection?

    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?

  • Andy Hassall

    #2
    Re: PDFlib detection?

    On Wed, 07 Apr 2004 11:59:39 -0700, bonehead <sendmenospam@h ere.org> wrote:
    [color=blue]
    >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?[/color]

    function_exists on one of the functions defined by that extension?



    --
    Andy Hassall <andy@andyh.co. uk> / Space: disk usage analysis tool
    http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space

    Comment

    • Nikolai Chuvakhin

      #3
      Re: PDFlib detection?

      bonehead <sendmenospam@h ere.org> wrote in message
      news:<40744F9B. 5080105@here.or g>...[color=blue]
      >
      > 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?[/color]

      Option 1:

      if (function_exist s('pdf_new')) {
      echo "PDFlib is available.<br />\n";
      } else {
      echo "PDFlib is not available.<br />\n";
      }

      Option 2:

      if (extension_load ed('pdf')) {
      echo "PDFlib is available.<br />\n";
      } else {
      echo "PDFlib is not available.<br />\n";
      }

      Cheers,
      NC

      Comment

      Working...