I am using the script:
<?php
$handle = fopen("http://www.worldofwarcraft.com/serverstatus/", "rb");
$contents = "";
while (!feof($handle)) {
$contents .= fread($handle, 1);
}
$finalimg = substr($content, '34737', '53');
echo $finalimg;
?>
I have tested this with a REALBasic application using the mid() function, and the RB application returns the value I am looking for. But for some reason, this returns "". Can someone tell me what I am doing wrong?