Jump to content

simplxml - has the file been changed since the last time?


e1seix

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.