--- a/functions.php Sun Mar 23 23:55:50 2008 -0400
+++ b/functions.php Mon Mar 24 00:12:21 2008 -0400
@@ -24,8 +24,10 @@
function burnout($msg)
{
- echo "\x1B[31;1m[Greyhound] fatal: \x1B[37;1m";
- echo "$msg\x1B[0m\n";
+ $h = @fopen('php://stderr', 'w');
+ fwrite($h, "\x1B[31;1m[Greyhound] fatal: \x1B[37;1m");
+ fwrite($h, "$msg\x1B[0m\n");
+ fclose($h);
exit(1);
}
@@ -36,7 +38,9 @@
function status($msg)
{
- echo "\x1B[32;1m[Greyhound] \x1B[32;0m$msg\x1B[0m\n";
+ $h = @fopen('php://stderr', 'w');
+ fwrite($h, "\x1B[32;1m[Greyhound] \x1B[32;0m$msg\x1B[0m\n");
+ fclose($h);
}
/**