Ir al contenido principal.
Enlaces relacionados:  Prensa  Compañía  Clientes  Contáctenos
Solsoft

Foros

Re: PHP-OpenISIS question


Autor Mensaje
Escrito en: 19. 05. 2003 [21:08]
admin@zti.hu
Kemecsei Zsolt
registrado desde: 31.12.1969
Entradas: 0
Thank you very mutch!

Zsolt

----- Original Message -----
From: "Braulio José Solano Rojas" <braulio@solsoft.co.cr>
To: "Admin" <admin@zti.hu>
Sent: Tuesday, May 20, 2003 3:59 AM
Subject: Re: PHP-OpenISIS question


Hi!

Sorry I took sometime to answer.

Well this is the API:

Functions:
resource isis_open([string $dbname, [string $args]])
Returns a dbid to manipulate an isis database

boolean isis_close(resource $dbid)
Return true or false on attempt to close an isis db

resource isis_search(string $term, resource $dbid)
Return search for a term over an isis database

resource isis_query(string $querystring, resource $dbid)
Return a set of records or empty on running a query like "water * plant"
over isis

array isis_terms(string $term, resource $dbid)
Return terms matching term (e.g. plant$) over an isis database

array isis_fetch_array(resource $isis_result)
Return an array with result information (mfn and tags)

int isis_num_rows(resource $isis_result)
Return the number of rows of a result

boolean isis_data_seek(resource $isis_result, int $row_number)
Move internal result pointer

boolean isis_free_result(resource $isis_result)
Return TRUE or FALSE

INI entries: (php.ini)
isis.default_dir = string
isis.default_database = string (this is also the reason why isis_open can
have no parameters)

You can also try this example:

<?php
$search="water";
$args = "-v error -encoding Cp850";
$dbid = isis_open("../db/cds/cds", $args);
$result = isis_query($search,$dbid);
if(!$result)
{
print "this query is empty <br />";
}
else
{
print "This result contains ". isis_num_rows($result). " rows <br />";
}

// ok got the results set now
while ($record=isis_fetch_array($result))
{
foreach($record as $key => $value)
{
if(!is_array($value))
{
echo $key." : " .($value)."<br/>";
}
else
{
foreach($value as $ix=> $val)
{
print $key." : " .htmlspecialchars($val)."<br/>";
}
}
}
echo "<p>";
}
?>

Or this one:

<?php
$dbid = isis_open("c:\documents and settings\braulio\mis
documentos\IsisDB\cds\cds");

$result = isis_search("$",$dbid);

while ($record = isis_fetch_array($result))
{
echo "<pre>"; var_dump($record); echo "<pre><br />";
}

isis_close($dbid);
?>

There is a Wiki here:
http://wiki.openisis.org/i/view/Php/WebHome

I have no manual yet.

Please join this list: php@openisis.org, just sen a blank email to
php-subscribe@openisis.org.

Best regards,

Braulio
----- Original Message -----
From: "Admin" <admin@zti.hu>
To: <braulio@solsoft.co.cr>
Sent: Friday, May 16, 2003 9:42 AM
Subject: PHP-OpenISIS question


Dear Braulio José,

I'm a Hungarian (Eastern-European) software developer, and I
would like to use your PHP-OpenISIS extension for my web-based
library-catalogue system.
I downloadad the dll package, but I didn't find any documentation about
it. Have you got a short reference about functions in English?

Thank you,
Zsolt Kemecsei, Budapest

------------------------------------------
Posted to Phorum via PhorumMail



Iniciar sesión de usuario

Introduzca su nombre de usuario y contraseña para iniciar su sesión en el sitio web:
Iniciar sesión

¿Ha olvidado su contraseña?


Copyright © 2003-2009, Solsoft de Costa Rica S.A.
Declaración de privacidad