# HG changeset patch # User Dan # Date 1206331941 14400 # Node ID 63a2575413130d8820d8498b6f3de4794ed1f7e1 # Parent a8d108f373630e4acfb48fbb909cce4250d00c40 Moved all Greyhound output to stderr so it will show up in AmaroK error messages; corrected some HTML bugs in the readme diff -r a8d108f37363 -r 63a257541313 README --- a/README Sun Mar 23 23:55:50 2008 -0400 +++ b/README Mon Mar 24 00:12:21 2008 -0400 @@ -1,13 +1,16 @@
Greyhound
- A PHP-based web interface for Amarok + A PHP-based web interface for Amarok
+
+ >>> To access this script once started navigate to: <<<
+ >>> http://localhost:7447/ <<<

I wrote Greyhound because of some issues I was having with other web interface scripts freezing and not working right. Greyhound is my first shot at writing Amarok scripts but it seems to work pretty well.

Greyhound's interface is based on the WebControl script by Jonas Christian - Drewsen, AndrĂ© Kelpe, and Peter C. Ndikuwera. However unlike WebControl + Drewsen, André Kelpe, and Peter C. Ndikuwera. However unlike WebControl Greyhound is written entirely in PHP, making it a bit more portable. This script doesn't require an external web server to run, it has a relatively basic built-in (single-threaded) server.

diff -r a8d108f37363 -r 63a257541313 functions.php --- 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); } /**