Quote Originally Posted by borris83 View Post

Code:
fputs ($fp, $header . $req)
This one basically send the the string which is a combination of $header and $request to the destination to the socket. (Note: This is the same principle as writing to a file). $fp points to a paypal script; you are sending the header info (represented by the $header string) and the post data across.

The header indicates that the incoming data is post data. So basically, you are sending information to paypal.