Should also consider adding a curl_getinfo and testing the http response code
And/or doing something more optimal to cache the data into a database for rate limiting reasons etc but sorta beyond the basic snippet
Should also consider adding a curl_getinfo and testing the http response code
And/or doing something more optimal to cache the data into a database for rate limiting reasons etc but sorta beyond the basic snippet