PHPEdit can be installed directly on a USB stick, but the problem is that PHPEdit's settings are stored in the user's profile directory. So to have these settings put in the USB stick, you have to tell PHPEdit what directory to use.
If you just installed PHPEdit and never used it, or if you don't want to import your previous settings to the new location, you can create manually the configuration file, to avoid having to restart PHPEdit and copy the files.
To do this, just create a file named PHPEdit.PHPEditSettings and put it next to PHPEdit.exe in the installation dir. Then open it and put the following content:
<?xml version="1.0" encoding="UTF-8"?>
<Settings version="2" key="">
<Property key="Settings">
<Property key="StorageDirectory">
<Data>Enter the new settings directory here</Data>
</Property>
<Property key="PreviousStorageDirectory">
<Data>Enter the new settings directory here</Data>
</Property>
</Property>
</Settings>
You can also use the settings dialog to change your settings directory, and make PHPEdit import your settings to the new location. This require PHPEdit to be able to write in it's installation dir, maybe needing administrator rights.
Go in the preferences dialog, display the inheritance panel by clicking on the splitter just under the title bar ( 1 ), click on the Application -> Local Settings ( 2 ), display the Miscellaneous page ( 3 ) and change the Application data storage directory ( 4 ).
Then restart PHPEdit, you will be asked if you want to import your previous settings:
And you're ready to use PHPEdit on a USB stick!