I'm doing a pixel tracking but when I try to get the HTTP Headers using cURL, it returns this:
Output http://image.prntscr.com/image/644e0c04a08e445c82e3381eed3b42f4.jpeg
the current code:
<?php
$img = imagecreate(1,1);
$white = imagecolorallocate($img, 255, 255, 255);
imagesetpixel($img,1,1,$white);
header("content-type: image/jpg");
imagejpeg($img);
imagedestroy($img);
$file = fopen("results.txt", "a");
$ip = $_SERVER['REMOTE_ADDR'];
$date = date("r");
fwrite($file, "$ip from: $_SERVER['HTTP_REFERER'] at $date");
fclose($file);
?>