PHP: A way for a file to have its own MD5 inside?
Posted
by Eli
on Stack Overflow
See other posts from Stack Overflow
or by Eli
Published on 2010-04-05T18:19:58Z
Indexed on
2010/04/05
18:23 UTC
Read the original article
Hit count: 152
Hi all,
In considering several possible solutions to a recent task, I found myself considering how to get a php file that includes it's own MD5 hash. I ended up doing something else, but the question stayed with me.
Something along the lines of:
<?php
echo("Hello, my MD5 is [MD5 OF THIS FILE HERE]");
?>
Whatever placeholder you have in the file, the second you take its MD5 and insert it, you've changed it.
© Stack Overflow or respective owner