AMF handler for PHP