I am attempting to post data using fsockopen, and then returning the result. Here is my current code:
Nice one Tamlyn, works great!
For those that also need to send get vars along with the url,
//change this: fwrite($fp, "POST /reposter.php HTTP/1.1\r\n"); //to: $query = 'a=1&b=2'; fwrite($fp, "POST /reposter.php?".$query." HTTP/1.1\r\n");