I've got an updater.php script located on several of my sites. This updater.php file is set to execute code when called from a home base (my central server).
So I'm looking to create a dashboard of sorts in which all my remote site addresses are listed, with the path to this updater.php script like so...
www.server1.com/path/updater.php
www.server2.com/path/updater.php
www.server3.com/path/updater.php
...etc (there will be lots of them)
And I'll create an interface to list those along with checkboxes beside each one, and a select all, etc
And I'm looking to create a PHP script that will iterate over the whole collection of urls in that list and execute the call to the updater.php file on each server, passing it a "version=v001" for example...
$.get("http://server1.com/path/updater.php?version=v001");
$.get("http://server2.com/path/updater.php?version=v001");
...etc
I've already set up the code in updater.php (the file that resides in all my sites) so that when it receives a request, it parses the $_GET['version'] to see what the version is and it knows which file to go get on my central server to perform the update.
I'm just looking for some clues how to create the script for this dashboard that sets it all into motion...
PS: In total, this is basically a batch updater script that executes wordpress theme updates without having to go to each site and do them individually.