NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
interbase cannot connect ibase_connect


Joined: 29 Oct 2009
Posts: 1
Location: West Coast USA
Reply with quote
I just installed the evaluation version of PHPEd 5.9 on Windows XP Pro SP 3
I am trying to connect to a firebird database.
The php_interbase.dll is installed default.
I really need help as there appears to be ZERO information on how to fix this.

Yet when attempting to run the code I get the following:

Fatal error: Call to undefined function ibase_connect() in C:\downloads\Programming\bhph1\php\initial.php on line 22

Code is as follows:

<?php
$host = 'localhost:\Program Files\BDC Database Server\bdc.fdb';
$username = 'SYSDBA'; $password = 'masterkey';
$customertbl = 'TBLCUSTOMERS';
$customerstmt = 'SELECT CUSTOMER_ID,FIRST_NAME,LAST_NAME FROM ' . $customertbl;

LINE 22 ==== $dbh = ibase_connect($host, $username, $password);


$stmt = '$customerstmt';
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
echo $row, "\n";
}
ibase_free_result($sth);
ibase_close($dbh);
?>



UPDATE:

I was able to get rid of that error by removing several semi colons in the php.ini file that uncommented some dlls.

NOW I get an error:

That the database is not available

Even though other NON-PHP code can locate and open that database.

Since I usually do not work with WINDOWS based code, this is presenting a task that makes me not want to work with win32/64 code at all.
View user's profileFind all posts by rem1010Send private messageMSN Messenger
interbase cannot connect ibase_connect
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic