3
# This simple script is intended for use with the online
4
# ActionScript testcases of Gnash. The testcases will POST
5
# to this file for logging run results
8
$filename = "/tmp/gnashtestreport.txt";
10
# Set the url corrisponding to the log filename
11
$url = "file:///tmp/gnashtestreport.txt";
13
function print_it($msg)
16
fwrite($logfile, $msg);
21
global $HTTP_POST_VARS;
24
print_it("\n[".gmdate("M d Y H:i:s")."]\n");
25
print_it($HTTP_POST_VARS{'traced'});
28
$logfile = fopen($filename, "a+");
29
# todo: check return from fopen()
32
echo "<B>Your tests results have been <A HREF=".$url.">logged</A>, thanks a lot.</B>"