Re: Problem with W2K, PHP 4.02 and SYBASE

From: Date: Fri, 06 Oct 2000 07:42:48 +0000
Subject: Re: Problem with W2K, PHP 4.02 and SYBASE
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-2985@lists.php.net to get a copy of this message
Uuups. Posted with wrong e-mail address. The correct one is toren@exense.com. Just to clarify. I know I can get rid of the warning message by excluding warnings in the php.ini file. I just included it to show that it seems like php manages to connect, but then gets disconnected and the script just dies. I have tested this on Apache 1.3.12 and by just running the PHP executable. So any tips would be greatly appreciated. TIA TEN ""TEN"" <toren@visma.no> wrote in message news:8rig67$j10$1@toye.p.sourceforge.net... > Could someone please help me out here. > I am trying to connect to a sybase db, from php, which is running on W2K > (same on NT4). > > The script look's like this > > <?php > > $db = sybase_pconnect("myserv", "myusr", "") ; > sybase_select_db("mydb",$db); > $result = sybase_query("SELECT col1, col2,..... FROM mytab",$db); > > echo "<table border=1>\n"; > echo "<tr><td>Code</td><td>Name</td>\n"; > > while ($myrow = sybase_fetch_row($result)) { > > printf("<tr><td>%s</td><td>%s</td><td>%s</td></tr>\n", > $myrow[0], > $myrow[1], $myrow[2]); > } > sybase_close($db); > ?> > > and the error look's this > > <b>Warning</b>: Sybase: Server message: Changed database context to > 'master'. > (severity 10, procedure N/A) in <b>sybase-test.php</b> on line <b>3</b><br> > > > It is no problem using ISQL/SQLAdvantage with the same parameters. > BTW, the same scrip runs OK on linux. > > TIA > > TEN > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#2985) next »