Skip to content

Instantly share code, notes, and snippets.

@Rocka84
Created September 1, 2016 10:04
Show Gist options
  • Save Rocka84/39aa4223add8547bd8a607ad592d9358 to your computer and use it in GitHub Desktop.
Save Rocka84/39aa4223add8547bd8a607ad592d9358 to your computer and use it in GitHub Desktop.
<?php
$src='LyoNCiAqIEknbSBhIHF1aW5lLCB0aGlzIGlzIG15IHNvdXJjZSBjb2RlLg0KICogUmVhZCBtb3JlIGF0IGh0dHA6Ly93d3cubWFkb3JlLm9yZy9+ZGF2aWQvY29tcHV0ZXJzL3F1aW5lLmh0bWwNCiAqLw0KaGVhZGVyKCdDb250ZW50LXR5cGU6IHRleHQvcGxhaW4nKTsNCmVjaG8gIjw/cGhwXG5cJHNyYz0nIi4kc3JjLiInO1xuIi5iYXNlNjRfZGVjb2RlKCRzcmMpOw0Kc2V0Y29va2llKCdxdWluZScsICJObywgSSdtIG5vdCBqdXN0IHRleHQuLi4gIi5kZWNoZXgobXRfcmFuZCgweDEwMDAsIDB4RkZGRikpKTsNCj8+';
/*
* I'm a quine, this is my source code.
* Read more at http://www.madore.org/~david/computers/quine.html
*/
header('Content-type: text/plain');
echo "<?php\n\$src='".$src."';\n".base64_decode($src);
setcookie('quine', "No, I'm not just text... ".dechex(mt_rand(0x1000, 0xFFFF)));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment