Re: Accessing MS SQL from PHP on LINUX (SOLVED)

From: Date: Wed, 03 Jan 2001 08:23:51 +0000
Subject: Re: Accessing MS SQL from PHP on LINUX (SOLVED)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32469@lists.php.net to get a copy of this message
Occassionally I actually figure it out on my own. This was one of those occassions. -- Rob --On Tuesday, January 02, 2001 09:31:33 PM -0800 Rob Tanner <rtanner@cheshire.onlinemac.com> wrote:
Hi all, I'm a seasoned perl programmer making his first foray into PHP. I'm running PHP4 as a DSO on Apache 1.3.12 under RH6.2. I built PHP with the option: --with-sybase-ct=/usr/local/freetds (which is right from the freetds FAQ). The following statement never succeeds (I get an unable to connect error message): $connect = mssql_connect("myMSSQL", "uname", "passwd" ); I know the freetds libraries are okay as well as the interfaces file since I can run queries using the perl DBI package. Is there something extra I need to do to acces the MS SQL database from PHP? Does anybody have some complete example code they'd be willing to share? I feel kinda stuck when I can't even get to first base :-( Thanks, Rob
       _ _ _ _           _    _ _ _ _ _
      /\_\_\_\_\        /\_\ /\_\_\_\_\_\
     /\/_/_/_/_/       /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
    /\/_/__\/_/ __    /\/_/    /\/_/          PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_/    /\/_/
  /\/_/ \/_/  /\/_/_/\/_/    /\/_/         (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/     \/_/              appears profound)
Rob Tanner McMinnville, Oregon rtanner@cheshire.onlinemac.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
      _ _ _ _           _    _ _ _ _ _
     /\_\_\_\_\        /\_\ /\_\_\_\_\_\
    /\/_/_/_/_/       /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
   /\/_/__\/_/ __    /\/_/    /\/_/          PROFUNDUM VIDITUR
  /\/_/_/_/_/ /\_\  /\/_/    /\/_/
 /\/_/ \/_/  /\/_/_/\/_/    /\/_/         (Whatever is said in Latin
 \/_/  \/_/  \/_/_/_/_/     \/_/              appears profound)
Rob Tanner McMinnville, Oregon rtanner@cheshire.onlinemac.com

« previous php.general (#32469) next »