I myself create a new folder called "Work" or sometimes I use a separate partition dedicated for "Work". I put everything concerning my work there like servers, language runtimes, application configurations, etc. This way I have the necessary permissions to alter files. If I put things in "Program Files" on Windows Vista I must first elevate to Administrator level.
For editing the "hosts" files, first drag it to your desktop and edit it there, then drag it back to the original directory.
But installing Zend Framework....it is just a bunch of text files which you can put any where you like...
Logic without the fatal effects.
All code snippets are licensed under WTFPL.