Hi together,
after another coffee, it is now working fine. I searched around a bit and finally found that the javascript-version of magik.dk always shows the correct status for me, so I changed the function icq_status() to:
function icq_status($icq) {
$handle = fopen ("http://magik.dk/services/icq/javascript/?uin=".$icq, "r"); // different url
while (!feof ($handle)) {
$buffer = fgets($handle, 4096);
$simple .= $buffer;
}
fclose ($handle);
ereg("document.write("([^"]+)");", $simple, $regs); //isolate status message with regular expression
//print_r($regs);
return $regs[1]; //return first match
}
That leaves still the question why the xml-version does not work, but there's still plenty of space left in the big brown folder called "X-Files"... ;o)
Anyway, perhaps it will help somebody else, too...
Good night!
Markus