Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

Re: [PHP3] PHP and Sybase, working now its not From: Zeev Suraski (bourbon <email protected>)
Date: 03/31/99

On Wed, 31 Mar 1999, Sean Rietze wrote:

> Everyone,
>
> We are connecting to MS SQL server via sybase. I have NO problems using
>
> DBD-Sybase to connect and run queries off of the SQL with perl, but
> after compiling
> PHP with Sybase support I get the following error:
>
> Warning: 0 is not a Sybase link index in ...

It means your connect failed, and you haven't checked for a failure. You
then use the failure error code (0) as if it was a Sybase link handle that
returned from a successful sybase_connect() call, which generates this
error.

As to why your connect fails, there can be many reasons. You should
probably reduce the minimum severity of Sybase errors/warnings that are
displayed, and pump up error_reporting all the way up
(error_reporting(E_ALL)), so that you'd have a clue as to what's going
wrong in there.

Zeev

>
> Here's how we compiled PHP.
> ./configure –with-mysql=/usr –with-sybase=/opt/sybase
>
> Also tried with the CT option, but then PHP just reports it can't load
> the CT modules for Sybase.
>
> I have the SYBASE variable set to /opt/sybase.
> My interfaces file is right. Perl uses it and it works fine.
>
> Biggest issue is I have the same setup running on another linux box with
> no problems
> PHP and Perl work great talking to MS SQL server. I actually wrote out
> the
> whole procedure, but obvoiusly I am missing a step or something.
>
> Any help??
>
> Thanks, Sean Rietze
>
>
>
> --
> PHP 3 Mailing List http://www.php.net/
> To unsubscribe send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest list: php3-digest-subscribe <email protected>
> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
> List administrator: zeev-list-admin <email protected>
>
>

-- 
-----------------------------------------------------
Zeev Suraski <zeev <email protected>>
For a PGP public key, finger bourbon <email protected>

-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>