command line interface - controlling CLI PHP scripts from web ui -


I have an application in which a dumper operation which continuously parses a web service and re-retrieves an XML stream It's not happening dump it in a mysql db

Right now I am doing all the dumping action in the UI and it is a real pain that dumps both data and manipulates it

So I have created a separate CLI script that takes care of the dumping action And the end of the front can only see DB each other so that it can see the new data that it is a very trivial way of doing it. But the only problem now is that I am unable to control the clip script from the web UI.

That's what I want to start the dumping action and stop it from the UI. I have tried this method that somewhere ago

  has been viewed (true) {if (file_exist ($ file)) {// do action} else {break; }}   

Then remove the file on the prevention action sick and there are variable problems with this method and this is not the right way to do so. That's why Web page UI is a better way to control command line scripts. The script already has database access, why do not you create a control table for the CLI script,

In which should he work? You can always drag the script loop to the record from the table.

You will be able to fix it with a line (you might already have a setting table that you can use (AB)), in which a single command if it is 1 or Your run is "run" or true or whatever you want, otherwise it stops.

Then, with the web UI you can send "command", which is the specified table.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -