I'm writing an application that will open a file and output some processed version. It will be a graphical desktop application, but must also be suitable for running on a web server. It therefore needs to provide a suitable interface for a web app's back-end code (which will likely be PHP).I'm writing an application that will open a fil