Index: zip_extract.php
===================================================================
--- zip_extract.php	(revision 886)
+++ zip_extract.php	(revision 887)
@@ -0,0 +1,21 @@
+<?
+// Extract a zip file to the specified directory
+
+// params: $file (string, input), $dest (string, input), $status (integer, output)
+
+$status=0;
+
+$zip = new ZipArchive;
+
+$res=$zip->open($file);
+if($res!==TRUE)
+	die("FAILED: Unable to open $file from RayPHP");
+
+$res=$zip->extractTo($dest);
+if(!$res)
+	die("FAILED: Unable to extract '$file' to '$dest'");
+
+$zip->close();
+
+$status=1;
+echo "'$file' extracted to '$dest'";