Paracoding here, I have something like this:
Code PHP:
//curl_req.php
class curl_req {
   public function getResults($arr) {
    //boring logic, make curl request, arrary push results, then return the array
   }
 
}
 
//index.php
set_time_limit(0);
require_once 'inc/curl_req.php';
$arr = array(
"1",
"2"
);
$ver = new curl_req();
$ver->getResults($arr);
//print results

Works like a charm, I print the results to a table in the web browser, set the time limit to 0 for larger files. My problem:

These files have to be run from a remote linux box. I want to be able to do an ajax request or similar to check the status, is this possible? How?