diff options
author | Silvio <silvio@devlet.com.br> | 2010-03-29 18:03:25 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-03-29 18:03:25 -0300 |
commit | 16032707c55df72fe3260150707eb6f3b488de03 (patch) | |
tree | fb6b505516e2bea49c2d00085a3947746b27612b /test.php | |
parent | 88703c804954ea2c754b87c10ec586f91b986620 (diff) | |
download | cinisis-16032707c55df72fe3260150707eb6f3b488de03.tar.gz cinisis-16032707c55df72fe3260150707eb6f3b488de03.tar.bz2 |
Adding pecl-isis tests
Diffstat (limited to 'test.php')
-rw-r--r-- | test.php | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -179,5 +179,30 @@ include('contrib/spyc/spyc.php'); //print_r(array_flip($fdt_anu10)); echo '</pre>'; } // end else could contact server + +?> + +<h3>Testing pecl-isis</h3> +<?php + + //$db = isis_open('db/anu10/anu10'); + $db = isis_open('db/tupi/tupi'); + print_r(isis_last_mfn($db)); + + echo '<table>'; + + $result = isis_search('$', $db); + while ($record = isis_fetch_flat_array($result) ) { + print (" <tr><td colspan=\"2\">MFN: $record[mfn]</td></tr>\n"); + for ($i=0; $i<count($record)-1; ++$i) { //-1 porque el mfn es +1 + list ($tag, $value) = $record[$i]; + print (" <tr>\n". + " <td>$tag</td>\n". + " <td>".htmlspecialchars($value)."</td>\n". + " </tr>\n"); + } + } + + echo '</table>'; ?> </body></html> |