Re: sybase and php
| From: | Koos van den Hout | Date: | Mon, 16 Oct 2000 12:44:25 +0000 |
| Subject: | Re: sybase and php | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-3637@lists.php.net to get a copy of this message | ||
Quoting Tom who wrote on Sun, Oct 15, 2000 at 10:37:14PM -0700:
> I configured a machine with php, pws and open client.
> Then the php
> scripting engine seems working fine. And then I
> created a file named
> "sybase.php" to test the connection between the php,
> open client and
> ASE.
> However, the return shows that there is something
> wrong with the ASE.
> Afterward, I searched the manuals.sybase.com almost
> entirely for an
> answer about the error message. But I got nothing,
> would someone can
> help to me to solve it. Thanks.
>
> The following shows that content of the sybase.php
>
> <?php
> $connect=sybase_connect("TEST","sa", "") or
> die ("Could not connect to the sybase server!");
> $selectdb=sybase_select_db("mydb",$connect) or die
> ("could not select db");
> $clssybase=sybase_close($connect) or die
> ("Cound not close sysbase database server");
> ?>
>
> The following shows the content of the error message.
>
> Warning: Sybase: Server message: Changed database
> context to 'master'.
This is normal. Which means your connection works.
Oh, change the password for 'sa' or your site could face the same problems
as other defaced sites.
> (severity 10, procedure N/A) in
> D:\Inetpub\wwwroot\cgi-bin\sybase.php on
> line 4
> PHP has encountered an Access Violation at 01FA03B3
This is not! And this is 'windows' so I can't help much more. Other then
recompiling it or using a Unix version.
--
Koos van den Hout, PGP keyid RSA/1024 0xCA845CB5 via keyservers
koos@kzdoos.xs4all.nl or DSS/1024 0xF0D7C263 -?)
Fax +31-30-2817051 Visit my site about books with reviews /\\
http://idefix.net/~koos/ http://www.virtualbookcase.com/ _\_V