[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] RaQ4, Interbase, PHP



Hi, we've got a stock standard Cobalt RaQ4i (preinstalled with PHP &
Interbase)

PHP & Interbase are working fine separately, but we want to do some web
pages with db content. However, PHP seems to not be recognizing the
interbase commands.

Do we have to recompile Apache or PHP or something to get it to work?

If so, does anyone have a step by step like I saw here somewhere for MySQL?

Also, is or is not the Interbase that's preinstalled up to any (small scale)
serious work or is it basically crap?




<?php

$host = "202.3.42.65:/home/opt/interbase/examples/employee.gdb";
$username = "SYSDBA";
$password = "masterkey";



	$dbh = ibase_connect ($host,$username,$password);
    	$stmt = 'SELECT * FROM tblname';
    	$sth = ibase_query ($dbh, $stmt);
    	while ($row = ibase_fetch_object ($sth)) {
      print $row->email . "\n";
    	}
    	ibase_close ($dbh);
?>


We always get "Call to undefined function: ibase_connect() in
/home/sites/home/web/Employee.php on line 9" when we load it onto the
server.
so we think PHP is not recognizing ibase_connect etc.
If anyone can fix the above then I'm sure we'll be ok after that.


p.s. This works ok ...
using Telnet
from [root /root]#  .... typed .....
/home/opt/interbase/bin/isql /home/opt/interbase/examples/employee.gdb -USER
"SYSDBA" -PAS "masterkey"
returns ...
SQL>

Then this works OK ...
SELECT * FROM EMPLOYEE;
records displayed


Regards


Peter