basic ajax/php relationship below. You could set it up, and then have it on a timed loop function, if you need it to run during a specific set of time. It just needs some tweaking depending on the sort of data you are sending, but the overall base structure is there.
$.ajax({
method: "POST", // Or GET
url: 'path', // URL to your server page
data: {parameter1: value1}, // parameters -- can be multiple. pareameter1 is what you target with $_POST['parameter1'] in PHP - value1 is your data.
success: function(data) { // PHP's echoed data
// Do something with the echoed data
}
//php
if(isset($_POST['param1])){
$retrievedData = $_POST['parameter1'];
echo $retrievedData;
}
});