Diaspora pod uptime watch script in PHP