to be able to do it like this:
$result = file_get_contents('http://opi.yahoo.com/online?u=' . $username);
$size = strlen($result);
if ($size == 140)
But, you'll have to check into the sizes or whatever yourself.
If you have PHP5 you can just use filesize()
directly with the URL.