A nice “hidden” feature that Textmate has is to check the syntax of the php files you are writing and display a popup with the result.
How to do this?
Open Bundle Editor, search for the PHP bundle, scroll down until you find the Validate syntax command.
Edit the Save setting to Current File.
Now, depending on how you want it, you can alter the Activation setting or not. I set it the same as saving the file, so each time I save the file, it makes me the syntax check.
Close the Bundle Editor.
From now on each time you save a syntax check will be done and a popup will show you the result