<?
processor();
function processor()
{
//include("dbconnect.php");
//$query = "select * from processor";
//$result = mysql_query($query, $mysql_link);
//$r = mysql_fetch_row($result);
$url = "https://secure.authorize.net/gateway/transact.dll";
//$data =
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
//curl_setopt($ch, CURLOPT_USERPWD, "myusername:mypassword");
curl_setopt($ch, CURLOPT_POSTFIELDS, "x_Login=myusername&x_Version=3.1&x_Amount=3.00&x_Card_Num=4111111111111111&x_Exp_Date=0203&x_Type=AUTH_CAPTURE&x_Test_Request=TRUE&submit=yes&x_Test_Request=TRUE&x_Cust_ID=me&x_Invoice_Num=123&x_Relay_Response=TRUE&x_Relay_URL=\"https://66.26.4.224/test/curl.php\"");
curl_exec($ch);
curl_close($ch);
}
?>
I thought this code was working before, but now it seems that it doesn't.
Should this code work. I want to make sure I wasn't confusing it with another script.