PHWinfo banniere

ACCUEIL ANNUAIRE ARTICLES COMPARATIF HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Go Back   PHWinfo > Forum Programmation > Scripting > comp.lang.php > SQL Server in PHP 5.3
FAQ Members List Search Today's Posts Mark Forums Read
SQL Server in PHP 5.3

Reply
 
Thread Tools
Old 11/24/09, 11:49   #1
Álvaro G. Vicario
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default SQL Server in PHP 5.3

I ran the Windows installer in order to enable the MSSQL extension in
our PHP/5.3.0 box and... it's not there!

I've been reading the PHP manual, changelogs, bugs database, Google...
and I still don't know whether the extension has been removed from
PHP/5.3 or it's only missing from the binary build due to an error. To
add more confusion, most sites where they talk about Windows development
in PHP mention a SQL Server Driver for PHP written by Microsoft [1] but
they don't explain whether it's an enhancement or the only alternative,
or even what its API looks like.

What happened to the MSSQL extension in PHP 5.3?


[1]
http://www.microsoft.com/downloads/d...displaylang=en

--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
  Reply With Quote
Old 11/24/09, 12:04   #2
Johannes Keßler
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default Re: SQL Server in PHP 5.3

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ãlvaro G. Vicario wrote:
> I ran the Windows installer in order to enable the MSSQL extension in
> our PHP/5.3.0 box and... it's not there!
>
> I've been reading the PHP manual, changelogs, bugs database, Google...
> and I still don't know whether the extension has been removed from
> PHP/5.3 or it's only missing from the binary build due to an error. To
> add more confusion, most sites where they talk about Windows development
> in PHP mention a SQL Server Driver for PHP written by Microsoft [1] but
> they don't explain whether it's an enhancement or the only alternative,
> or even what its API looks like.
>
> What happened to the MSSQL extension in PHP 5.3?
>
>
> [1]
> http://www.microsoft.com/downloads/d...displaylang=en
>
>


Did you looked int the non installer package ?

regards,
johannes keßler
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (GNU/Linux)

iEYEARECAAYFAksLy9YACgkQE++2Zdc7EtflVQCffqUZGc4UUV 4hf292Nt9mT2Da
A34An0o49Erml6lA+a7qih3P2gDE90hc
=bodf
-----END PGP SIGNATURE-----
  Reply With Quote
Old 11/24/09, 12:23   #3
Ãlvaro G. Vicario
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default Re: SQL Server in PHP 5.3

Johannes Keßler escribió:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ãlvaro G. Vicario wrote:
>> I ran the Windows installer in order to enable the MSSQL extension in
>> our PHP/5.3.0 box and... it's not there!
>>
>> I've been reading the PHP manual, changelogs, bugs database, Google...
>> and I still don't know whether the extension has been removed from
>> PHP/5.3 or it's only missing from the binary build due to an error. To
>> add more confusion, most sites where they talk about Windows development
>> in PHP mention a SQL Server Driver for PHP written by Microsoft [1] but
>> they don't explain whether it's an enhancement or the only alternative,
>> or even what its API looks like.
>>
>> What happened to the MSSQL extension in PHP 5.3?
>>
>>
>> [1]
>> http://www.microsoft.com/downloads/d...displaylang=en
>>
>>

>
> Did you looked int the non installer package ?


It's not there either.



--
-- http://alvaro.es - Ãlvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
  Reply With Quote
Old 11/24/09, 12:43   #4
Jerry Stuckle
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default Re: SQL Server in PHP 5.3

Álvaro G. Vicario wrote:
> I ran the Windows installer in order to enable the MSSQL extension in
> our PHP/5.3.0 box and... it's not there!
>
> I've been reading the PHP manual, changelogs, bugs database, Google...
> and I still don't know whether the extension has been removed from
> PHP/5.3 or it's only missing from the binary build due to an error. To
> add more confusion, most sites where they talk about Windows development
> in PHP mention a SQL Server Driver for PHP written by Microsoft [1] but
> they don't explain whether it's an enhancement or the only alternative,
> or even what its API looks like.
>
> What happened to the MSSQL extension in PHP 5.3?
>
>
> [1]
> http://www.microsoft.com/downloads/d...displaylang=en
>
>


It's in the VC6 thread-safe non-installer version, anyway.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
  Reply With Quote
Old 11/24/09, 12:57   #5
Álvaro G. Vicario
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default Re: SQL Server in PHP 5.3

Álvaro G. Vicario escribió:
> I ran the Windows installer in order to enable the MSSQL extension in
> our PHP/5.3.0 box and... it's not there!
>
> I've been reading the PHP manual, changelogs, bugs database, Google...
> and I still don't know whether the extension has been removed from
> PHP/5.3 or it's only missing from the binary build due to an error. To
> add more confusion, most sites where they talk about Windows development
> in PHP mention a SQL Server Driver for PHP written by Microsoft [1] but
> they don't explain whether it's an enhancement or the only alternative,
> or even what its API looks like.
>
> What happened to the MSSQL extension in PHP 5.3?
>
>
> [1]
> http://www.microsoft.com/downloads/d...displaylang=en


My current findings so far:

- The php_mssql.dll file is back in 5.3.1, so it was probably an error
- The SQLSRV extension by Microsoft creates its own PHP functions; it's
not a "driver" like the PHP manual suggests
- The API documentation for SQLSRV is in a CHM manual contained in the
ZIP download
- SQLSRV is Windows-only
- SQLSRV seems to use ODBC internally

I guess my best option is asking the sysadmin to upgrade PHP. If I use
the Microsoft extension I'll end up with non portable code. But I'd
really love some confirmation about the status of the MSSQL extension.



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
  Reply With Quote
Old 11/24/09, 14:55   #6
Erwin Moller
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default Re: SQL Server in PHP 5.3

Álvaro G. Vicario schreef:
> Álvaro G. Vicario escribió:
>> I ran the Windows installer in order to enable the MSSQL extension in
>> our PHP/5.3.0 box and... it's not there!
>>
>> I've been reading the PHP manual, changelogs, bugs database, Google...
>> and I still don't know whether the extension has been removed from
>> PHP/5.3 or it's only missing from the binary build due to an error. To
>> add more confusion, most sites where they talk about Windows
>> development in PHP mention a SQL Server Driver for PHP written by
>> Microsoft [1] but they don't explain whether it's an enhancement or
>> the only alternative, or even what its API looks like.
>>
>> What happened to the MSSQL extension in PHP 5.3?
>>
>>
>> [1]
>> http://www.microsoft.com/downloads/d...displaylang=en

>
>
> My current findings so far:
>
> - The php_mssql.dll file is back in 5.3.1, so it was probably an error
> - The SQLSRV extension by Microsoft creates its own PHP functions; it's
> not a "driver" like the PHP manual suggests
> - The API documentation for SQLSRV is in a CHM manual contained in the
> ZIP download
> - SQLSRV is Windows-only
> - SQLSRV seems to use ODBC internally
>
> I guess my best option is asking the sysadmin to upgrade PHP. If I use
> the Microsoft extension I'll end up with non portable code. But I'd
> really love some confirmation about the status of the MSSQL extension.
>
>
>


Hey,

I haven't worked on MSSQL for some time, so maybe I am only making
noise, but have a look here:
http://www.microsoft.com/sqlserver/2...HP-Driver.aspx

Maybe it s.

Regards,
Erwin Moller

--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare
  Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 09:18.


Powered by vBulletin® ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
PHWinfo is a website Education Without Frontiers
Ad Management by RedTyger
All rights reserved
Page generated in 0.27506 seconds with 7 queries