↧
Answer by ajreal for Using cURL and HTTP headers to cache an XML feed...
You can touch() the xml file with the timestamp return by strtotime,example :-date_default_timezone_set('Asia/Singapore'); // replace to your timezone$time = strtotime('Wed, 23 Nov 2011 15:49:24...
View ArticleUsing cURL and HTTP headers to cache an XML feed correctly with PHP
I am using cURL to get an XML feed and save it into an XML file, like soif (file_exists($filename) && (filemtime($filename) > time() - 30)) { // load cached XML from file $output =...
View Article