A little tip. If you deploy your PHP projects with Phing, you are familiar with the file build.xml. If you want to execute multiple commands, that depend on each other to be executed, you have to use && in between the commands. For example, clearing the cache:
-
ssh user@example.com ‘cd cache && rm *’
The line in phing build.xml would look like this:
-
<exec command="ssh user@example.com ‘cd cache && rm *’ />
But typing it like that will produce an error, since it is not a well-formed XML document. You have to transform the &’s into entities.
-
<exec command="ssh user@example.com ‘cd cache && rm *’ />
This will work as expected.
