e1seix Posted January 8, 2009 Share Posted January 8, 2009 is there a way using simplexml to tell if the file has been changed since the last time you ran the script? i searched but didn't find anything else coming close in the archives. many thanks, Link to comment https://forums.phpfreaks.com/topic/140045-simplxml-has-the-file-been-changed-since-the-last-time/ Share on other sites More sharing options...
rhodesa Posted January 8, 2009 Share Posted January 8, 2009 to check if an XML file has changed? no matter what you need to store a value somewhere and check the new value against the old one. as far as what the 'value' is, you can do: filemtime() - Returns the time the file was last modified md5_file() - Returns a hash of the file...if the file is different, even by one character, a new hash will be returned Link to comment https://forums.phpfreaks.com/topic/140045-simplxml-has-the-file-been-changed-since-the-last-time/#findComment-732721 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.