Difference Between Compiled Libraries and Loaded Extensions

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

    Difference Between Compiled Libraries and Loaded Extensions

    What is the main difference between a library compiled into PHP and
    one loaded in PHP.INI as an extension?

    The reason I ask is that I'm trying to use FreeTDS as a library to
    communicate to MS-SQL. The notes I've read say that FreeTDS has to be
    compiled first, then PHP recompiled with support for MSSQL, but I have
    no way of recompiling PHP on the operating system I'm using.

    How does this differ with using say a DLL in an 'extensions' line.

    Rob.
  • Toby A Inkster

    #2
    Re: Difference Between Compiled Libraries and Loaded Extensions

    ELINTPimp wrote:
    Basically, from what you are saying, you will need to recompile
    PHP...and it seems you are Windows. For information on how to do this,
    see the bible:
    http://us.php.net/manual/en/install....s.building.php
    Nope -- he's using FreeTDS, which is a library required only by the non-
    Windows version of PHP's MSSQL extension.

    PHP support for MSSQL takes quite a bit of effort to get going on non-
    Windows OSes (as does Perl support for MSSQL) -- if your distribution
    doesn't include the relevant libraries and you can't recompile PHP, then
    you're probably out of luck.

    --
    Toby A Inkster BSc (Hons) ARCS
    [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
    [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 20 days, 23:42.]

    Bottled Water

    Comment

    • Rob

      #3
      Re: Difference Between Compiled Libraries and Loaded Extensions

      On Feb 19, 5:38 pm, Toby A Inkster <usenet200...@t obyinkster.co.u k>
      wrote:
      ELINTPimp wrote:
      Basically, from what you are saying, you will need to recompile
      PHP...and it seems you are Windows.  For information on how to do this,
      see the bible:
      http://us.php.net/manual/en/install....s.building.php
      >
      Nope -- he's using FreeTDS, which is a library required only by the non-
      Windows version of PHP's MSSQL extension.
      >
      PHP support for MSSQL takes quite a bit of effort to get going on non-
      Windows OSes (as does Perl support for MSSQL) -- if your distribution
      doesn't include the relevant libraries and you can't recompile PHP, then
      you're probably out of luck.
      >
      --
      Toby A Inkster BSc (Hons) ARCS
      [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
      [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 20 days, 23:42.]
      >
                                     Bottled Water
               http://tobyinkster.co.uk/blog/2008/02/18/bottled-water/
      That's what I thought. On the upside, it looks like HP are going to
      release a version of PHP based on v5 later this year, so with any
      luck, I might just get support for MS-SQL after all.

      My real reason for asking the question was to fill in my knowledge gap
      about extensions.

      Rob.

      Comment

      Working...