Create cgen.php