functions.php
changeset 9 63a257541313
parent 8 a8d108f37363
child 13 b5db2345c397
--- 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);
 }
 
 /**