As a beginner in php and javascript, I am seeking a straightforward method to execute a php file from javascript. While browsing through various examples (here and here), most of them rely on jQuery which I prefer to avoid.
My goal is to trigger the update process on the server similar to the second example.
var stillAlive = setInterval(function () {
/* XHR back to server
Example uses jQuery */
$.get("stillAlive.php");
}, 60000);
I have considered using an AJAX approach, but all the tutorials I found focus on sending and receiving data with the request. In this case, I simply need to execute a basic php file without the need to send any data. I am unsure how to utilize AJAX in this straightforward manner.
Thank you for any suggestions offered.