Oh... for Windows XP, in Windows Explorer, go to Tools -> Folder Options -> View and then uncheck "hide extensions for known file types".
Chances are your text editor saved the files with a .txt extension by default, so your files are actually named foo.php.txt, but the web server only treats files with a .php extension as PHP scripts.