in Mac apps, PHP

Writing a PHP Coda Plugin

Sound like a right pain in the arse? It’s surprisingly simple actually….

The steps to creating a simple locally run php Coda plugin:

You must have php installed and running locally.
Start the plugin file with theses lines:

#!/usr/bin/php -q

(no space between < and ?php) Where /use/bin/php is the path to you local php install

This is an example of replacing a text string with an imaginary tag 'harry' around it.

#!/usr/bin/php
' . $input . '';

?>

For much more information:
http://www.panic.com/coda/developer/howto/plugins.php

[carousel keywords="php development" tag="fetchit-21"]