/[webpac]/openisis/0.9.0/php/file
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /openisis/0.9.0/php/file

Parent Directory Parent Directory | Revision Log Revision Log


Revision 238 - (show annotations)
Mon Mar 8 17:46:16 2004 UTC (20 years, 1 month ago) by dpavlin
File size: 535 byte(s)
tagging openisis 0.9.0

1 <?php
2 require_once('Isis.php');
3 // gather all numerical or known parameters
4 $r = Isis_Http::fromReq( array( 'author' => 70 ) );
5 $f = new Isis_File( '/tmp/test', 1 );
6 if ( $r->len() ) {
7 $n = $f->write( $r->toString(), $_GET['W'] );
8 echo "wrote mfn $n\n";
9 }
10 if ($_GET['C'])
11 $f->compact();
12 for ( $n=0; ++$n <= $f->len; ) {
13 $foo = $f->read($n);
14 // if ( 1000 < $n ) break;
15 echo "\nW\t$n\n$foo\n"; // echo "\nW $n\n";
16 // pretty print
17 // for ( $r = new Isis_Rec('-mfn', $n, $foo); $v = $r->mhl(); ) echo "$v\n";
18 }
19 ?>

  ViewVC Help
Powered by ViewVC 1.1.26