I have an existing PHP script that manipulates some data and then exports the data into a csv file. A value is passed to the PHP script through a url parameter and then the user downloads the csv file once it finishes running. Problem is it can take over 15 minutes to run. I beleive this is due to the PHP timeout interval. In any case, I did test the scirpt and it runs perfectly using the command line (I hard coded the url parameter value instead in replace of the $GET function for my test). So I would like the following done:
1) I have an secured existing interface with a download now button that triggers the script. I want you to add another button that says Run Export. When clicked it will run the export script through the command line interface. Keep in mind the url will have a query parameter value (just an id number). When the script is complete, there should be an icon or link that appears to allow the user to download or delete the file. Extra plus, if there is something to show the script is running.
2) You will need to modify the script to ensure the GET parameter (passed for the url) will work since it will be running through the command line.
.
Hi, I'm a PHP senior coder, I can perfectly make what you're asking for. I think I can also implement a progress bar, depends on your server. Just check my reviews for reference.
Kind regards,
Alejandro
Work will take about hour.
You will get:
1) command line support (as well as URL param 'id');
2) status of script running;
3) proper links on your page: Export/Download/Delete (according to status);
4) any time limits.
I am an experienced PHP developer, and have implemented similar mechanisms in the past. This is a relatively short job, but one that needs some finesse.