freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Tom Sillence" <tom.sillence AT enfocast.com>
- To: "TDS Development Group" <freetds AT franklin.metalab.unc.edu>
- Subject: RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP
- Date: Mon, 14 Oct 2002 12:57:33 +0100
I have just moved my php code to ctlib (from dblib, not odbc, admittedly).
Everything's pretty much transparent (I was using the mssql aliases for the
sybase functions), apart from one gotcha. That is that ctlib doesn't
implement:
- (mssql|sybase)_min_message_severity
- (mssql|sybase)_min_error_severity
- (mssql|sybase)_get_last_error
which means you need to do one of two things to handle errors:
- stop the mssql functions from printing error messages (prepend them with
@), turn track_errors on and use $php_errormsg (and swallow a small
performance penalty), or
- capture the error messages printed by the mssql functions, which can be
fiddly
Just thought I'd mention it.
---Tom Sillence
----- Original Message -----
From: "ZIGLIO Frediano" <Frediano.Ziglio AT vodafoneomnitel.it>
To: "TDS Development Group" <freetds AT franklin.metalab.unc.edu>
Sent: Monday, October 14, 2002 12:27 PM
Subject: [freetds] RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP
> >
> > Great Freddy,
> >
> > I'll try Nightly SnapShot.
> > If I intend to use ctlib, how should I write PHP programs? Using odbc
> > functions, mssql functions (I think this doesn't work in
> > Linux) or sybase
> > ones?
> >
> > Helio
> >
>
> mssql, work (there are aliases to sybase functions).
>
> freddy77
>
> =================================
> "STRICTLY PERSONAL AND CONFIDENTIAL
>
> This message may contain confidential and proprietary material for the
sole
> use of the intended recipient. Any review or distribution by others is
> strictly prohibited. If you are not the intended recipient please contact
> the sender and delete all copies.
> The contents of this message that do not relate to the official business
of
> our company shall be understood as neither given nor endorsed by it."
>
> =================================
>
> ---
> You are currently subscribed to freetds as: [freetds AT sillence.co.uk]
> To unsubscribe, forward this message to
$subst('Email.Unsub')
>
-
RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP
, (continued)
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Peter Harvey, 10/10/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Helio Cavichiolo Jr, 10/10/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Peter Harvey, 10/10/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, ZIGLIO Frediano, 10/11/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Helio Cavichiolo Jr, 10/12/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Helio Cavichiolo Jr, 10/13/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Peter Harvey, 10/13/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, ZIGLIO Frediano, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Helio Cavichiolo Jr, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, ZIGLIO Frediano, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Tom Sillence, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Lowden, James K, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, ZIGLIO Frediano, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Tom Sillence, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Helio Cavichiolo Jr, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Helio Cavichiolo Jr, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Lowden, James K, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Nick Gorham, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Castellano, Nicholas, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Nick Gorham, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Castellano, Nicholas, 10/14/2002
Archive powered by MHonArc 2.6.24.