You'd never believe I spent all day on this! (Well, in between doing actual work)
After trying a whole bunch of different libraries and scripts, and trying unsuccessfully to learn CURL to use with github's api, I finally found a library that does what I need: https://github.com/KnpLabs/php-github-api
I can use it to get a list of commits, and compare the sha of the most recent one to one I saved earlier in a text file, so if there is a commit, then run getfileurls.php and update all the links :-)
I'd love to find a way to send myself a notification if there's ever a new page linked where I need to input a direct file link for the first time, but it doesn't look like there's any way to send web-based SMS messages for free. Maybe I can find a robot to send me messages in a Slack or Hangouts chat room. Email would be easy but there's no point, I don't check my email more than 1-3 times a day.
My program has a message area to put messages associated with the files (eg for an initial test I set the messages for every file whose path is /luma/payloads to "delete the files in /luma/payloads not ending in .bin and rename the .bin file according to the guide" so all I need to do is make a page to display the contents of the database and be able to edit it without opening up CPanel (so I can fix things on mobile), and make a button on the program to report errors, then I'll go alpha :-D Then, if all the wrong data gets fixed up, and people are actually interested in using it, I'll make a pull request to add the divs to the what you need sections, and it can run off the REAL guide!
After trying a whole bunch of different libraries and scripts, and trying unsuccessfully to learn CURL to use with github's api, I finally found a library that does what I need: https://github.com/KnpLabs/php-github-api
I can use it to get a list of commits, and compare the sha of the most recent one to one I saved earlier in a text file, so if there is a commit, then run getfileurls.php and update all the links :-)
I'd love to find a way to send myself a notification if there's ever a new page linked where I need to input a direct file link for the first time, but it doesn't look like there's any way to send web-based SMS messages for free. Maybe I can find a robot to send me messages in a Slack or Hangouts chat room. Email would be easy but there's no point, I don't check my email more than 1-3 times a day.
My program has a message area to put messages associated with the files (eg for an initial test I set the messages for every file whose path is /luma/payloads to "delete the files in /luma/payloads not ending in .bin and rename the .bin file according to the guide" so all I need to do is make a page to display the contents of the database and be able to edit it without opening up CPanel (so I can fix things on mobile), and make a button on the program to report errors, then I'll go alpha :-D Then, if all the wrong data gets fixed up, and people are actually interested in using it, I'll make a pull request to add the divs to the what you need sections, and it can run off the REAL guide!