I have a simpleXML file that is being generated from a rest api call and will be fed into a database on a scheduled basis via a cronjob.
The results returned from the API calls are limited to 10 per page and the problem I am having is updating the page number parameter for the call to get the next set of results
$page_number = 1;
$page = $page_number++;
$api_url = "example.com/rest/api?products=new&pageid=$page";
I’m not sure how to get the variable $page to increment on each cron, any help is much appreciated
You could store in:
socketfor this.