I'm pretty sure (though haven't tried it recently) that you can use the "start" command to open docs, etc, if need be.

Not tested (and not looking at my reference), you should be able to do:

exec("start document.txt");

And that should launch "notepad.exe" or whatever the user has configured for txt files.


Never argue with an idiot. They drag you down to their level then beat you with experience