Skip to content

Instantly share code, notes, and snippets.

@jrivero
Created February 19, 2016 00:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrivero/4acbe07e4ee4da189e3c to your computer and use it in GitHub Desktop.
Save jrivero/4acbe07e4ee4da189e3c to your computer and use it in GitHub Desktop.
<?php
/*
// tracking
$date=date("Y-m-d H:i:s");
$ip =$_SERVER['REMOTE_ADDR'];
$db = mysql_pconnect($hostname, $username, $password) or trigger_error(mysql_error(),E_USER_ERROR);
mysql_select_db($database, $db);
mysql_query("INSERT INTO tracking (ip, timestamp) VALUES ('$ip','$date')",$db);
*/
header("content-type: image/gif");
die(base64_decode("R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==")); // 43 byte transparent pixel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment