I am attempting to post data using fsockopen, and then returning the result. Here is my current code:
At no point is $data being written to the socket. You want to add something like:
$data
$out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); fwrite($fp, $data);