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

Difference Between Compiled Libraries and Loaded Extensions

P: n/a
Rob
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.
Feb 19 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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/
Feb 19 '08 #2

P: n/a
Rob
On Feb 19, 5:38*pm, Toby A Inkster <usenet200...@tobyinkster.co.uk>
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.
Feb 20 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.