~clinton-collins/familyproject/trunk

« back to all changes in this revision

Viewing changes to xampp/special/paradox/008.phpt

  • Committer: Clinton Collins
  • Date: 2009-06-26 19:54:58 UTC
  • Revision ID: clinton.collins@gmail.com-20090626195458-5ebba0qcvo15xlpy
Initial Import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
Reading a simple paradox database with a graphic field
 
3
--SKIPIF--
 
4
<?php if (!extension_loaded("paradox")) print "skip"; ?>
 
5
--POST--
 
6
--GET--
 
7
--INI--
 
8
--FILE--
 
9
<?php 
 
10
$dirname = dirname($_SERVER["SCRIPT_FILENAME"]);
 
11
$pxdoc = px_new();
 
12
$fp = fopen($dirname."/picture.db", "r");
 
13
px_open_fp($pxdoc, $fp);
 
14
px_set_blob_file($pxdoc, $dirname."/picture.mb");
 
15
for($i=0; $i<px_numrecords($pxdoc); $i++) {
 
16
        $data = px_get_record($pxdoc, $i, PX_KEYTOLOWER);
 
17
        echo md5($data["picture"])."\n";
 
18
}
 
19
px_close($pxdoc);
 
20
fclose($fp);
 
21
px_delete($pxdoc);
 
22
?>
 
23
--EXPECT--
 
24
1187c3b0365cdba557503607bde26a04