Hey guys, I'm trying to convert this script from Perl to PHP... heres the Perl code...
use LWP::UserAgent;
$ua = new LWP::UserAgent;
$req = new HTTP::Request 'POST','https://www.paypal.com/cgi-bin/webscr';
$req->content_type('application/x-www-form-urlencoded');
$req->content($query);
$res = $ua->request($req);
I'm guessing that I'd have to use Sockets to do this kind of thing in PHP, but I figured if Perl has some simplified way, perhaps PHP did too?