I just need to know what directories you have since you use the status here:
$file = './icon/'.$status. . .. That $status is what the content body is of the file_get_contents, but with the socket run I have I don't have a valid messenger to give it so all it gives me back is 2\n00\n0, and I don't know what that means in combination with the $status directories you have.
header('HTTP/1.1 420 Enhance Your Calm');