Ich glaube, ich habe mein Problem nicht richtig beschrieben: der konkrete Fall sieht so aus:
<?php
header("content-type: image/gif");
if ($http://www.ahasms.de/status.php == 0 {
echo $http://www.ahasms.de/red.gif;
} else {
echo $http://www.ahasms.de/green.gif;
}
?>
So funtionierts nicht. Was mache ich falsch?