You could have a text file with such URLs in your DIR, that all of the Templates read to get the URL De Jour. Then you would only need to fix one file, or one line of a file, when SC or others change their URLs.
I learned that a long time ago, as the phone book has a disclaimer that the customer has no property rights to a phone number, and that it can change at will, or whim.
Two days before Christmas, our Friends at Google decided to change the method to read Google Sheets programmatically, like I do with .php. It took 2 weeks to find a new method, and I'm still about half way through fixing each helper script! I have a config file in the DIR with part of the new code, but then each script has its own file_get_contents() string.
|