I have a PHP file which calls a console application. I have couple of range sliders as inputs to the console application. When I click the search button in my page it calls the console application and if I change the range slider value within 1 sec and call the exe
again the output displayed is the previous output and after a while again the output is changed tp the current output.
I guess this is because the previous console application isn't terminated in the second time so it displays the same output and in a while gives the correct output. How can I solve this problem? How can I terminate the previous execution of exe
before calling another exe?
The output of the console application is saved in an array. I tried assigning null to the array before exec but it didn't work. I am using apache server
in ubuntu
.