Created
October 9, 2011 03:55
-
-
Save farinspace/1273259 to your computer and use it in GitHub Desktop.
PHP function to write a blank 1px gif
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
function writeGif() | |
{ | |
header( 'Content-type: image/gif' ); | |
header( 'Expires: Wed, 11 Nov 1998 11:11:11 GMT' ); | |
header( 'Cache-Control: no-cache' ); | |
header( 'Cache-Control: must-revalidate' ); | |
echo base64_decode('R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='); | |
exit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment