Wordpad is capapable of saving files as plain DOS text, make sure though by using Save As. That would give you a file with each line terminated by a carriage return/new line character. Windows might give you some problems using a .php extension, if so just use a .txt extension then change the file name after you upload it.
If your web site is on a Windows server and you have a true plain text file, either an ASCII or binary upload should work. Chances are it will be some flavor of UNIX or Linux though. To convert the DOS text file to a UNIX text file (lines terminated by a line feed character only) you would need to set your FTP program to do an ASCII transfer rather than binary. How you do that depends on what file transfer software you use. That will convert every carriage return/line feed end of line character to line feed only as the file uploads.
Some information you might want to have on hand (and will help if you post questions) is the operating system of your PC and the server, how you do file transfers, and what software you use.
Also, if you have shell access, which means you can edit the php file on the server, it will not only be automatically the correct format but it can also simplify trouble shooting. You can save the changes, then run it again to see what happens skipping the upload step.
If you accidentally upload a DOS text file to a UNIX or Linux server and open it in a text editor such as vi or emacs at the command line, you will see a ^M at the end of each line.