Hi folks,

I'm very new to PHP and PEAR. But I'm having very strange troubles
with this simple thing.

I'm trying to run the following script into a php file:
  <?php
    require_once 'DB.php';
    $db =
    DB::Connect('ibase(firebird)://SYSDBA:[EMAIL 
PROTECTED]//var/lib/firebird/data/database.gdb');
    // The same error ocurrs with or with out the (firebird) string in
    // the DSN
    $res = $db->query('SELECT * FROM USERS');
    echo $res->numRows();
    while ($row = $res->fetchRow()) {
      echo $row[0];
    }
  ?>

So simply, uh?

But when the line containing "$res = $db->query('SELECT * FROM
USERS');" is executed inmediatly I've a segfault of PHP in the
Apache's access.log file and a 404 Error in my browser.
Commenting this line out , the page is shown empty, as usual.
Using ADODB or ibase* functions, the same procedure (stablish the
connection, run the query and show the results) is done with out any
problem.


Thanx in advance,
  

-- 
José Romero
Sistemas JG
Isla de Margarita - Venezuela
mailto:[EMAIL PROTECTED]

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT$ d+(-) s+:+ a- C++(+++)$ UL>$ P+>++ L+>++$ !E W++ N++ ?o ?K w--(++)$
O-- M-(--) !V PS+ PE++ Y PGP t 5(+) X+ R tv+ b+ DI(+) D+ G(+) e++ h! r(-) y+
------END GEEK CODE BLOCK------

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to