I am on a php script to fetch a local copy of remote rss (xml) file and already I know, I can do it, using a cron job like this
but I think I can do it so far easier using lines of php, to compare server time with the local copied file's timestamp, when calling the php fetch script. if the time is over a threshold like 1hr, I will simply refetch the remote xml, else, process the local xml copy.
Does this approach have any drawbacks?