Like notepad++ or sublime then upload back?
Yepp. Those two are 100 times better. For my office I use notepad++ with it's sftp plugin which works perfectly for me. For my own projects which involve php ( code completion stuffs) I use Netbeans for php. I have used sublime before and it is an awesome piece of editor too.
Can you elaborate a bit more on this?
Sure. We actually have 3 separate environments for our project. Development, Staging and production . We only make changes to the development environment. It has separate database which we use with test data. Once we test out everything is working in the development server, we commit the changes ( we use git, but svn could work too..).
The commit gets pulled by the staging server, which by the way has a db having the same data as in the production ( it gets pulled time to time, so it's not live db. It still has data that is more realistic). We do another set of test in the staging and if we don't have any failed cases, we pull the changes to production. Also remember, NOBODY TOUCHES either staging or production.
I am not saying your setup needs to be this complicated, but having separate environments for development and production prevents a lot of potential woos and ahhs. Your development environment could just be your local machine while the production could be your actual server, no matter if you are working alone or in team. If you are working in team you could use branches (if everybody is working with the same code, and there can be a potential conflict) for making changes to different parts of the project and then merge those branches together when the total changes are done.
Bonus Tips:
bitbucket.com offers private git repo hosting for free! You don't actually need to pay a penny to get a repo, if your project isn't huge.
Hope it helps
