View Single Post
Old 05-27-2003, 04:57 AM  
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
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$errstr30);

if (!
$fp) {
 
// ERROR
 
echo "$errstr ($errno)";
} else {

//put the data..
 
fputs ($fp$header $req);
 while (!
feof($fp)) {
//read the data returned...
   
$res fgets ($fp1024);

}
 
fclose ($fp);

__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote