IBASE (beginner)
| From: | Kepes Krisztian | Date: | Tue, 17 Dec 2002 08:37:38 +0000 |
| Subject: | IBASE (beginner) | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-24213@lists.php.net to get a copy of this message | ||
Hi !
I am beginner in PHP.
I want to connect an IB database.
When I was execute this cgi code, the php send error message to me.
#!c:\php\php.exe
<?php
include 'Db/ibase.php'; <--------------------- !!!!!
print 'hello\n';
print 'CONNECT\n';
$host='127.0.0.1:c:/webapps/database/test.gdb';
$username='sysdba';
$password='akármi';
$dbh = ibase_connect ($host, $username, $password);
$stmt = 'SELECT * FROM a';
$sth = ibase_query ($dbh, $stmt);
while ($row = ibase_fetch_object ($sth))
{print $row->email . "\n";}
ibase_close ($dbh);
print 'DISCONNECT\n';
?>
Fatal error: Class db_common: Cannot inherit from undefined class pear
in c:\php\pear\DB\common.phpon line 29
What I do wrong ?
Please help me ! Thanks.
KK
>>> vmalic@yahoo.com 16.12.02 21:16 >>>
Hi,
any ideas on how to safely add user to the Windows 2000 AD(with PHP of
course)?
I experimented with exec() and net user /add ... any suggestion will
do.
Windows 2000 Server, IIS, PHP 4.2.3 (CGI)
Regards,
Vlado
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php