c2ephp

tests/pray-frankenstein.php

Go to the documentation of this file.
00001 <?php
00002 require_once(dirname(__FILE__).'/../agents/PRAYFile.php');
00003 require_once(dirname(__FILE__).'/../agents/PRAY/BinaryBlock.php');
00004 
00005 
00006 $prayfile = new PRAYFile();
00007 for($i=1;$i<sizeof($argv);$i++) {
00008     $type = substr($argv[$i],-4);
00009     $name = substr($argv[$i],0,-5);
00010     echo $name.'.'.$type."\n";
00011     $content = file_get_contents($argv[$i]);
00012     $prayfile->AddBlock(new BinaryBlock($type,$name,$content));
00013 }
00014 $fh = fopen('output.pray','w');
00015 fwrite($fh,$prayfile->Compile());
00016 fclose($fh);
00017 ?>
 All Classes Files Functions Variables Enumerations