Log uploading.

This commit is contained in:
Matthew Bowra-Dean
2010-05-26 19:23:58 +12:00
parent a6d0adbab3
commit e7c7a117a8
3 changed files with 50 additions and 1 deletions

14
web/logs/upload.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
$post_file = fopen("php://input", "rb");
$log_file = fopen("log.".time().".gz", "wb");
$post_data = '';
while (!feof($post_file)) {
$post_data .= fread($post_file, 8192);
}
fwrite($log_file, $post_data);
fclose($post_file);
fclose($log_file);
?>