It doesn't quite work -> in both Mozilla and IE6 it tries to download example.php rather than displaying the actual file. You should probably tweak the headers a little.
Other than that, it looks good, even though I don't quite see what the use of it is.