Created
July 18, 2010 12:21
-
-
Save benthebear/480366 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Tiny Skript to click do something with my stuff. | |
// Do something here | |
// Tiny Clicktracker | |
if($_SERVER["HTTP_REFERER"]!=""){ | |
$file = fopen("counter.txt", "a+"); | |
fwrite($file, time()." | ".$_SERVER["HTTP_REFERER"]."\n"); | |
fclose($file); | |
} | |
// Finally create and deliver image here | |
header ("Content-type: image/png"); | |
$im = @ImageCreate (1, 1) | |
or die ("Kann keinen neuen GD-Bild-Stream erzeugen"); | |
$background_color = ImageColorAllocate ($im, 255, 255, 255); | |
$text_color = ImageColorAllocate ($im, 255, 255, 255); | |
ImagePNG ($im); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment