Sometimes it's necessary to access raw post data. The easiest way to do this is by opening the php://input stream:
$fp = fopen('php://input', 'r');