using PDFlib

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

    using PDFlib

    L.S.,

    Would somebody help me about PDFlib using? I am a user of a Linux
    machine (not root) and I have installed PDFlib somewhere in my home
    directory. So I can't change the '/etc/php.ini' file.
    If I use the next statement "dl('!home/lib/PDFlib.so')" in my script I
    get the next error :
    Warning: dl(): Unable to load dynamic library
    '/usr/lib/php/extensions/local/usr/people/emami/lib/PDFlib.so' -
    /usr/lib/php/extensions/local/usr/people/emami/lib/PDFlib.so: cannot
    open shared object file

    And it is understandable, because he are looking for a directory which
    is not exist. I would appropriate if somebody would tell me to solve
    this problem.

    With regards,

    Nader
  • NC

    #2
    Re: using PDFlib

    Nader Emami wrote:
    >
    I am a user of a Linux machine (not root) and I have installed
    PDFlib somewhere in my home directory.
    This is not going to work. All extensions must reside in the same
    directory, which must be specified in php.ini. There is also a default

    setting, but it is complicated. Read the documentaton:

    Loads a PHP extension at runtime

    I would appropriate if somebody would tell me to solve this
    problem.
    Without root-level access, you can't.

    Cheers,
    NC

    Comment

    • Nader Emami

      #3
      Re: using PDFlib

      NC wrote:
      Nader Emami wrote:
      >I am a user of a Linux machine (not root) and I have installed
      >PDFlib somewhere in my home directory.
      >
      This is not going to work. All extensions must reside in the same
      directory, which must be specified in php.ini. There is also a default
      >
      setting, but it is complicated. Read the documentaton:
      >
      Loads a PHP extension at runtime

      >
      >I would appropriate if somebody would tell me to solve this
      >problem.
      >
      Without root-level access, you can't.
      >
      Cheers,
      NC
      >
      Thank for you reaction! I have used 'fpdf' library and it does work.

      Cheers,
      Nader

      Comment

      Working...