...Use "alljobstxt.php" to also create your *.doc file.
Somewhere at the top of the script fopen("jobs.doc", "w+"). Then, as you are echo()'ing the data to the browser, add another line that fputs()'s the same text into your "jobs.doc" file. Don't forget to close "jobs.doc" at the end.
This will accomplish your goal of outputting the data to the browser and creating the copy of the data in a file. Even though you create the file with .doc extension, it really* isn't a MicroS___ Word format, but Word should have not problem opening it and the extension will cause Word to autolaunch on most systems if that is what your after.
-- Rich --