And here's an example from that page which might be helpful (no, I am lazy today, so I won't write you some custom code):
PHP Code:
//create a string with all the posted data...
foreach ($HTTP_POST_VARS as $key => $value) {
$value = urlencode(stripslashes($value));
$req .= "&$key=$value";
}
//create headers...
$header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= 'Content-Length: ' . strlen($req) . "\r\n\r\n";
$fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30);
if (!$fp) {
// ERROR
echo "$errstr ($errno)";
} else {
//put the data..
fputs ($fp, $header . $req);
while (!feof($fp)) {
//read the data returned...
$res = fgets ($fp, 1024);
}
fclose ($fp);
}