I need a small java application when dropping a html file on to it, one line of php code is added and the file saved with a .php extension. Basically needs to run on Mac or Windows.
The line of php code that should be added looks like this:
<?php $groupswithaccess="word-etnered"; require_once("../slpw/[url removed, login to view]"); ?>
This is how it should work: I drop a file onto the app, a dialog box appears and asks: Please enter Group. Enter a word, click ok. The above php line is added with the entered word where it says "word-entered" and the file is saved with a .php extension instead of html or htm. The file name can stay as it is.