I have managed to get a new window to open on clicking the test file link. However it is completely blank. If I click view source, the code opens up in notepad and is clearly my test file. But the web browser renders the text file as a blank page.
Do you want only the PHP part of the code or the entire web page code in the text file?
If you click the text link, does the code need to be visible? I looked at the example of first semester's forum and saw that the php part of that example also did not display.