~clinton-collins/familyproject/trunk

« back to all changes in this revision

Viewing changes to xampp/special/paradox/004.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
Create an new paradox database with 100 records (Double, Boolean, Alpha)
 
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."/px004.db", "w+");
 
13
$fields = array(array("col1", "N"), array("col2", "L"), array("col3", "A", 15));
 
14
@px_create_fp($pxdoc, $fp, $fields);
 
15
px_set_tablename($pxdoc, "testtabelle");
 
16
for($i=-50; $i<50; $i++) {
 
17
        $rec = array($i*0.001, $i<0, "Nummer $i");
 
18
        px_put_record($pxdoc, $rec);
 
19
}
 
20
px_close($pxdoc);
 
21
px_delete($pxdoc);
 
22
unlink($dirname."/px004.db");
 
23
?>
 
24
--EXPECT--