Forum Moderators: coopster

Message Too Old, No Replies

PHP+Interbase+Windows problem

Need help in php+apache+interbase working under Windows

         

Dmitrij

8:11 pm on Nov 20, 2002 (gmt 0)

10+ Year Member



Hello!

I installed Php+Apache under windows 2000 professional and can't connect to database!
The php code is
<?php
$dbh = ibase_pconnect("d:/temp/test.gdb", "sysdba", "masterkey");
$stmt = 'SELECT * FROM tblname';
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
echo $row->email, "\n";
}
ibase_free_result($sth);
ibase_close($dbh);
?>

I get error:

Warning: InterBase: unavailable database in d:\projects\findyourlove\www\test.php on line 2

Does anyone have the same problem?
What the solution?

jatar_k

8:35 pm on Nov 20, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com] Dmitrij

Is the path to the db correct? It looks like the connect is the problem.

Did you look at
[php.net...]

Dmitrij

10:50 pm on Nov 20, 2002 (gmt 0)

10+ Year Member



The path is correct.
I took it from IBConsole.

jatar_k

6:41 pm on Nov 21, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Could it be a permissions problem?

Have you tried to add

or die (some message);

after your connect statement to see if you can maybe get a little more info?