I’m currently looking at a project based on self replicating content. Closest thing out there is Jeremy Rushton’s awesome TiddlyWiki, however it seems that PHP can self-write with no problems.
[PHP] Self-overwriting Scripts – GameDev.Net Discussion Forums