Armature developer here, but have built a nice PHP script that imports data from a CSV, does calculations, and then produces a PDF file for each row of the CSV. Script is working great, output looks great. Some day this may get up on a server if this all works out, but for the next number of months, this will remain a “desktop script” that I run on my local Windows PC . . . Meaning I open a command prompt and execute the PHP code.
However, the File Name of the CSV is hardcoded in the script. It would be ideal if I could: #1. Have a dialog box popup so that I could navigate to the input CSV file (which changes daily), and then #2. Have another dialog box that I could enter the batch name (I’d like to have this input to the script, so I could use it as a variable, and eventually put on the PDF report).
QUESTION: It seems like on the desktop, there isn’t a native UI for PHP. My first thought, since my needs are really simple, is to use some other scripting language that I am familiar with (like AutoHotkey, or similar) to popup the two dialog boxes, gather the info, then write them to a file, then when I execute the PHP script, have it retrieve the values from that file. SO MY QUESTION IS, are there any better approaches for a way to “graphically” get a few pieces of variable information into my PHP script? Processing speed is not really a concern. Ease of use, and non-complex are more of a concern.