Talk:Fram
From Fram
For version 0.3, we want to include a function to create an archive file containing all the files of a project. However, it seems PHP 5.2.8 is required for this, and our hosting environment is at 5.1.x. Anyway, here is the code for this so far:
function efFram_Zip( &$parser, $zip = '') { $zip = new ZipArchive; $res = $zip->open($filename . '.zip', ZipArchive::CREATE); if ($res === TRUE) { $zip->addFromString('$filename', '$text'); $zip->close(); echo 'ok'; } else { echo 'failed'; } return $parser->mTitle->getFullURL( 'action=raw&file='.urlencode( $zip ) ); }
Any thoughts on how we can move forward are welcome.

