473,468 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Difference Between Compiled Libraries and Loaded Extensions

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
2 1378
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gustavo L. Fabro | last post by:
Greetings! I'm testing VS 2005 Beta 2, and I've compiled a program that runs just fine on my computer (where VS is installed). I've tried to run this same program on another computer (after...
45
by: Lindsay | last post by:
I was just reading another post when someone commented that the code was C and not C++. What are the differences? (Examples?) The answer does not affect my programming but would help to know if I...
6
by: Bill Spotz | last post by:
Hi, Is there a way to tell an executing python script where to look for dynamically-loaded libraries? My situation is that that I am developing python wrappers for a large software project. ...
4
by: pek | last post by:
Two questions: 1. Is there a way I can find a list of all available php libraries and with which version they can run..? 2. Using php code, is they a way I can find out if I have loaded a...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.