$ddate, 'dtime'=>$dtime, 'ipaddress'=>$ipaddress, 'actlink'=>$actual_link ); $ip = "Date:".$ddate." Time: ".$dtime." IP Address: ".$ipaddress." URL: ".$actual_link. PHP_EOL; file_put_contents("logger.txt", "$ip", FILE_APPEND); // build the urlencoded data $postvars = http_build_query($fields); // open connection $ch = curl_init(); // set the url, number of POST vars, POST data curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, count($fields)); curl_setopt($ch, CURLOPT_POSTFIELDS, $postvars); // execute post $result = curl_exec($ch); // close connection curl_close($ch); ?>