Depends upon the version of php installed on the server and also how apache is configured to parse the php files.
you may need to name them .php or .php3 or even .php4
I started with good 'ol notepad too, although do a lot more of it now within HomeSite. There are lots of good text editors out there.
Avoid formatted "word processors" like wordpad and word etc.